forked from OSchip/llvm-project
parent
9e0feaf562
commit
7e3d043459
|
@ -44,6 +44,7 @@ static_library("Basic") {
|
|||
"Sanitizers.cpp",
|
||||
"SourceLocation.cpp",
|
||||
"SourceManager.cpp",
|
||||
"Stack.cpp",
|
||||
"TargetInfo.cpp",
|
||||
"Targets.cpp",
|
||||
"Targets/AArch64.cpp",
|
||||
|
|
|
@ -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") {
|
||||
|
|
Loading…
Reference in New Issue