From: Nico Weber Date: Mon, 26 Aug 2019 19:08:43 +0000 (+0000) Subject: gn build: (manually) merge r369940 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9d300e8c8ba0018bd21845a5e9bcf7899eb7be9b;p=llvm gn build: (manually) merge r369940 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@369948 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/utils/gn/secondary/clang/lib/Basic/BUILD.gn b/utils/gn/secondary/clang/lib/Basic/BUILD.gn index ee12adbce43..fccfe852f67 100644 --- a/utils/gn/secondary/clang/lib/Basic/BUILD.gn +++ b/utils/gn/secondary/clang/lib/Basic/BUILD.gn @@ -44,6 +44,7 @@ static_library("Basic") { "Sanitizers.cpp", "SourceLocation.cpp", "SourceManager.cpp", + "Stack.cpp", "TargetInfo.cpp", "Targets.cpp", "Targets/AArch64.cpp", diff --git a/utils/gn/secondary/clang/test/BUILD.gn b/utils/gn/secondary/clang/test/BUILD.gn index 7cb97537713..f8945f59ce0 100644 --- a/utils/gn/secondary/clang/test/BUILD.gn +++ b/utils/gn/secondary/clang/test/BUILD.gn @@ -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") {