From 8de41f3d54c265b9fcbcd3df943b1049f17e662e Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 4 Dec 2017 15:28:42 +0200 Subject: Recognize and handle Clang's -pc-windows-msvc target triplet --- libbutl/target-triplet.cxx | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'libbutl/target-triplet.cxx') diff --git a/libbutl/target-triplet.cxx b/libbutl/target-triplet.cxx index 88a4262..dfd93b4 100644 --- a/libbutl/target-triplet.cxx +++ b/libbutl/target-triplet.cxx @@ -83,7 +83,8 @@ namespace butl { // See if this is one of the well-known non-vendors. // - if (s.compare (f, n, "linux") == 0 || + if (s.compare (f, n, "linux") == 0 || + s.compare (f, n, "windows") == 0 || s.compare (f, n, "kfreebsd") == 0) { l = f - 1; @@ -134,9 +135,13 @@ namespace butl class_ = "linux"; else if (vendor == "apple" && system == "darwin") class_ = "macos"; - else if (system == "freebsd" || system == "openbsd" || system == "netbsd") + else if (system == "freebsd" || + system == "openbsd" || + system == "netbsd") class_ = "bsd"; - else if (system.compare (0, 5, "win32") == 0 || system == "mingw32") + else if (system.compare (0, 5, "win32") == 0 || + system.compare (0, 7, "windows") == 0 || + system == "mingw32") class_ = "windows"; else class_ = "other"; -- cgit v1.1