Skip to content

Commit

Permalink
[gn build] (manually) port ca67510
Browse files Browse the repository at this point in the history
  • Loading branch information
nico committed Apr 16, 2021
1 parent 2bfe158 commit 48cc5b0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions llvm/utils/gn/secondary/lld/test/BUILD.gn
@@ -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")
Expand Down Expand Up @@ -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 {
Expand Down
1 change: 1 addition & 0 deletions llvm/utils/gn/secondary/lld/tools/lld/BUILD.gn
Expand Up @@ -34,6 +34,7 @@ executable("lld") {
"//lld/lib/Driver",
"//lld/wasm",
"//llvm/lib/Support",
"//llvm/utils/gn/build/libs/xar",
]
sources = [ "lld.cpp" ]
}

0 comments on commit 48cc5b0

Please sign in to comment.