1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 02:33:06 +01:00

[gn build] (manually) port ca6751043d88

This commit is contained in:
Nico Weber 2021-04-16 18:03:44 -04:00
parent 9e6192bcdf
commit b82ca2a3f3
2 changed files with 8 additions and 0 deletions

View File

@ -1,5 +1,6 @@
import("//llvm/lib/DebugInfo/PDB/enable_dia.gni")
import("//llvm/triples.gni")
import("//llvm/utils/gn/build/libs/xar/enable.gni")
import("//llvm/utils/gn/build/libs/xml/enable.gni")
import("//llvm/utils/gn/build/libs/zlib/enable.gni")
import("//llvm/utils/gn/build/write_cmake_config.gni")
@ -51,6 +52,12 @@ write_lit_cfg("lit_site_cfg") {
extra_values += [ "LLVM_ENABLE_DIA_SDK=0" ] # Must be 0.
}
if (llvm_enable_libxar) {
extra_values += [ "HAVE_LIBXAR=1" ]
} else {
extra_values += [ "HAVE_LIBXAR=" ]
}
if (llvm_enable_libxml2) {
extra_values += [ "LLVM_ENABLE_LIBXML2=1" ]
} else {

View File

@ -34,6 +34,7 @@ executable("lld") {
"//lld/lib/Driver",
"//lld/wasm",
"//llvm/lib/Support",
"//llvm/utils/gn/build/libs/xar",
]
sources = [ "lld.cpp" ]
}