diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2022-10-19 11:10:18 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2022-10-19 11:10:18 +0200 |
commit | 9c14033610bc00072d00389c879ac305efbb95df (patch) | |
tree | 29d4c7a97ee771d3b7d5ceb7a8a23494a0df4c94 /tests | |
parent | 81ec829b96a01ef08b9fa6191c603c2a4d856c2c (diff) |
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.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/target-triplet/driver.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
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")); |