gn build: Merge r356929 (effectively relands r353518, reverted in r353621)

llvm-svn: 357019
This commit is contained in:
Nico Weber 2019-03-26 18:55:37 +00:00
parent 2f5cd03a3f
commit 445744d840
5 changed files with 7 additions and 6 deletions

View File

@ -30,7 +30,6 @@ write_cmake_config("Config") {
"CLANG_CONFIG_FILE_USER_DIR=",
"DEFAULT_SYSROOT=",
"GCC_INSTALL_PREFIX=",
"CLANG_ANALYZER_WITH_Z3=",
"BACKEND_PACKAGE_STRING=LLVM ${llvm_version}svn",
"ENABLE_LINKER_BUILD_ID=",
"ENABLE_X86_RELAX_RELOCATIONS=",

View File

@ -48,6 +48,7 @@ static_library("Core") {
"RangeConstraintManager.cpp",
"RangedConstraintManager.cpp",
"RegionStore.cpp",
"SMTConstraintManager.cpp",
"SValBuilder.cpp",
"SVals.cpp",
"SarifDiagnostics.cpp",
@ -58,9 +59,5 @@ static_library("Core") {
"SymbolManager.cpp",
"TaintManager.cpp",
"WorkList.cpp",
"Z3ConstraintManager.cpp",
]
# FIXME: clang/Config/BUILD.gn currently always sets CLANG_ANALYZER_WITH_Z3
# to false. If that changes we need to link to Z3 libs here.
}

View File

@ -39,7 +39,7 @@ write_lit_config("lit_site_cfg") {
output = clang_lit_site_cfg_file
extra_values = [
"CLANG_ANALYZER_WITH_Z3=", # Must be empty, not 0.
"LLVM_WITH_Z3=", # Must be empty, not 0.
"CLANG_BUILD_EXAMPLES=0",
"CLANG_DEFAULT_CXX_STDLIB=", # Empty string means "default value" here.
"CLANG_TOOLS_DIR=" + rebase_path("$root_out_dir/bin"),

View File

@ -124,6 +124,7 @@ write_cmake_config("config") {
"RETSIGTYPE=void",
"LLVM_GISEL_COV_ENABLED=",
"LLVM_GISEL_COV_PREFIX=",
"LLVM_WITH_Z3=",
# FIXME: Set to 1 on mac once the 10.14 SDK is in common use.
"LLVM_SUPPORT_XCODE_SIGNPOSTS=",

View File

@ -125,6 +125,7 @@ static_library("Support") {
"WithColor.cpp",
"YAMLParser.cpp",
"YAMLTraits.cpp",
"Z3Solver.cpp",
"circular_raw_ostream.cpp",
"raw_os_ostream.cpp",
"raw_ostream.cpp",
@ -157,6 +158,9 @@ static_library("Support") {
libs = []
# FIXME: llvm/Config/BUILD.gn currently always sets LLVM_WITH_Z3
# to false. If that changes we need to link to Z3 libs here.
if (current_os == "linux" || current_os == "android") {
libs += [ "dl" ]
} else if (current_os == "win") {