Skip to content

Commit f5ed0b7

Browse files
committed
[gn] port f5885de
1 parent ac193bc commit f5ed0b7

File tree

1 file changed

+7
-0
lines changed
  • llvm/utils/gn/secondary/lld/test

1 file changed

+7
-0
lines changed

llvm/utils/gn/secondary/lld/test/BUILD.gn

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import("//llvm/lib/DebugInfo/PDB/enable_dia.gni")
22
import("//llvm/triples.gni")
3+
import("//llvm/utils/gn/build/libs/pthread/enable.gni")
34
import("//llvm/utils/gn/build/libs/xml/enable.gni")
45
import("//llvm/utils/gn/build/libs/zlib/enable.gni")
56
import("//llvm/utils/gn/build/libs/zstd/enable.gni")
@@ -88,6 +89,12 @@ write_lit_cfg("lit_site_cfg") {
8889
extra_values += [ "LLVM_ENABLE_LIBXML2=0" ] # Must be 0.
8990
}
9091

92+
if (llvm_enable_threads) {
93+
extra_values += [ "LLVM_ENABLE_THREADS=1" ]
94+
} else {
95+
extra_values += [ "LLVM_ENABLE_THREADS=0" ] # Must be 0.
96+
}
97+
9198
if (llvm_enable_zlib) {
9299
extra_values += [ "LLVM_ENABLE_ZLIB=1" ]
93100
} else {

0 commit comments

Comments
 (0)