gn build: (manually) merge r369940

llvm-svn: 369948
This commit is contained in:
Nico Weber 2019-08-26 19:08:43 +00:00
parent 9e0feaf562
commit 7e3d043459
2 changed files with 8 additions and 0 deletions

View File

@ -44,6 +44,7 @@ static_library("Basic") {
"Sanitizers.cpp",
"SourceLocation.cpp",
"SourceManager.cpp",
"Stack.cpp",
"TargetInfo.cpp",
"Targets.cpp",
"Targets/AArch64.cpp",

View 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") {