aboutsummaryrefslogtreecommitdiff
path: root/tests/target-triplet
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2023-10-11 08:14:31 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2023-10-11 08:17:02 +0200
commit90b6ea19de89b30f592d6d8dfbfd616686627681 (patch)
treee72c9527bc75dcd4b6c2734c78ae1842a79fec9b /tests/target-triplet
parentc040341f88c8e02a3ec5db1a3bd0a0542876f2bb (diff)
Canonicalize Clang's *-w64-windows-gnu to *-w64-mingw32 (GH issue #288)
Note that config.guess doesn't recognize *-w64-windows-gnu as a valid target triplet: Invalid configuration 'x86_64-w64-windows-gnu': Kernel 'windows' not known to work with OS 'gnu'.
Diffstat (limited to 'tests/target-triplet')
-rw-r--r--tests/target-triplet/driver.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/target-triplet/driver.cxx b/tests/target-triplet/driver.cxx
index 30153a1..8c08a90 100644
--- a/tests/target-triplet/driver.cxx
+++ b/tests/target-triplet/driver.cxx
@@ -74,6 +74,10 @@ main ()
"i686-w64-mingw32",
"i686", "w64", "mingw32", "", "windows"));
+ assert (test ("x86_64-w64-windows-gnu",
+ "x86_64-w64-mingw32",
+ "x86_64", "w64", "mingw32", "", "windows"));
+
assert (test ("i686-lfs-linux-gnu",
"i686-lfs-linux-gnu",
"i686", "lfs", "linux-gnu", "", "linux"));