]> granicus.if.org Git - llvm/commitdiff
gn build: (manually) merge r369940
authorNico Weber <nicolasweber@gmx.de>
Mon, 26 Aug 2019 19:08:43 +0000 (19:08 +0000)
committerNico Weber <nicolasweber@gmx.de>
Mon, 26 Aug 2019 19:08:43 +0000 (19:08 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@369948 91177308-0d34-0410-b5e6-96231b3b80d8

utils/gn/secondary/clang/lib/Basic/BUILD.gn
utils/gn/secondary/clang/test/BUILD.gn

index ee12adbce439d811064c128d9075739dbde8de9c..fccfe852f671ab0cd09777d784f69539425044b6 100644 (file)
@@ -44,6 +44,7 @@ static_library("Basic") {
     "Sanitizers.cpp",
     "SourceLocation.cpp",
     "SourceManager.cpp",
+    "Stack.cpp",
     "TargetInfo.cpp",
     "Targets.cpp",
     "Targets/AArch64.cpp",
index 7cb975377131c6a89d1036568de8ed669c1d5308..f8945f59ce067ebe8307860d45d58778c329ccc9 100644 (file)
@@ -2,6 +2,7 @@ import("//clang/lib/ARCMigrate/enable.gni")
 import("//clang/lib/StaticAnalyzer/Frontend/enable.gni")
 import("//llvm/lib/Target/targets.gni")
 import("//llvm/triples.gni")
+import("//llvm/utils/gn/build/libs/pthread/enable.gni")
 import("//llvm/utils/gn/build/libs/zlib/enable.gni")
 import("//llvm/utils/gn/build/write_cmake_config.gni")
 import("clang_lit_site_cfg_files.gni")
@@ -100,6 +101,12 @@ write_lit_config("lit_site_cfg") {
     # FIXME: Analysis/plugins need global -fPIC
     extra_values += [ "LLVM_ENABLE_PLUGINS=0" ]
   }
+
+  if (llvm_enable_threads) {
+    extra_values += [ "LLVM_ENABLE_THREADS=1" ]
+  } else {
+    extra_values += [ "LLVM_ENABLE_THREADS=0" ]  # Must be 0.
+  }
 }
 
 write_lit_config("lit_unit_site_cfg") {