[llvm] r373899 - gn build: use better triple on windows

Nico Weber via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 7 06:13:32 PDT 2019


Author: nico
Date: Mon Oct  7 06:13:31 2019
New Revision: 373899

URL: http://llvm.org/viewvc/llvm-project?rev=373899&view=rev
Log:
gn build: use better triple on windows

The CMake build uses "x86_64-pc-windows-msvc". The "-msvc" suffix is
important because e.g. clang/test/lit.cfg.py matches against the
suffix "windows-msvc" to compute the presence of the "ms-sdk" and
the absence of the "LP64" feature.

Differential Revision: https://reviews.llvm.org/D68572

Modified:
    llvm/trunk/utils/gn/secondary/llvm/triples.gni

Modified: llvm/trunk/utils/gn/secondary/llvm/triples.gni
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/gn/secondary/llvm/triples.gni?rev=373899&r1=373898&r2=373899&view=diff
==============================================================================
--- llvm/trunk/utils/gn/secondary/llvm/triples.gni (original)
+++ llvm/trunk/utils/gn/secondary/llvm/triples.gni Mon Oct  7 06:13:31 2019
@@ -10,7 +10,7 @@ if (current_cpu == "x86") {
   } else if (current_os == "mac") {
     llvm_current_triple = "x86_64-apple-darwin"
   } else if (current_os == "win") {
-    llvm_current_triple = "x86_64-pc-windows"
+    llvm_current_triple = "x86_64-pc-windows-msvc"
   }
 } else if (current_cpu == "arm64") {
   if (current_os == "android") {




More information about the llvm-commits mailing list