From 9c14033610bc00072d00389c879ac305efbb95df Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 19 Oct 2022 11:10:18 +0200 Subject: Canonicalize 'linux' to `linux-gnu' in target triplet In particular, GCC in Fedora now reports its target as x86_64-redhat-linux. Note that this canonicalization is consistent with config.sub. --- tests/target-triplet/driver.cxx | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tests') diff --git a/tests/target-triplet/driver.cxx b/tests/target-triplet/driver.cxx index 6dcb77e..30153a1 100644 --- a/tests/target-triplet/driver.cxx +++ b/tests/target-triplet/driver.cxx @@ -82,6 +82,10 @@ main () "x86_64-linux-gnu", "x86_64", "", "linux-gnu", "", "linux")); + assert (test ("x86_64-redhat-linux", + "x86_64-redhat-linux-gnu", + "x86_64", "redhat", "linux-gnu", "", "linux")); + assert (test ("x86_64-linux-gnux32", "x86_64-linux-gnux32", "x86_64", "", "linux-gnux32", "", "linux")); -- cgit v1.1