Skip to content

Commit

Permalink
[gn build] (manually) port 10b1b4a
Browse files Browse the repository at this point in the history
  • Loading branch information
nico committed Jul 24, 2020
1 parent 6371a0a commit 2ad5611
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 18 deletions.
4 changes: 2 additions & 2 deletions llvm/utils/gn/secondary/clang/test/BUILD.gn
Expand Up @@ -79,9 +79,9 @@ write_lit_config("lit_site_cfg") {
}

if (llvm_enable_zlib) {
extra_values += [ "HAVE_LIBZ=1" ]
extra_values += [ "LLVM_ENABLE_ZLIB=1" ]
} else {
extra_values += [ "HAVE_LIBZ=0" ] # Must be 0.
extra_values += [ "LLVM_ENABLE_ZLIB=0" ] # Must be 0.
}

if (host_cpu == "x64") {
Expand Down
4 changes: 2 additions & 2 deletions llvm/utils/gn/secondary/lld/test/BUILD.gn
Expand Up @@ -49,9 +49,9 @@ write_lit_cfg("lit_site_cfg") {
}

if (llvm_enable_zlib) {
extra_values += [ "HAVE_LIBZ=1" ]
extra_values += [ "LLVM_ENABLE_ZLIB=1" ]
} else {
extra_values += [ "HAVE_LIBZ=0" ] # Must be 0.
extra_values += [ "LLVM_ENABLE_ZLIB=0" ] # Must be 0.
}

if (current_cpu == "x64" || current_cpu == "arm64" ||
Expand Down
14 changes: 2 additions & 12 deletions llvm/utils/gn/secondary/llvm/include/llvm/Config/BUILD.gn
Expand Up @@ -295,20 +295,10 @@ write_cmake_config("config") {
values += [ "LLVM_ENABLE_DIA_SDK=" ]
}

# FIXME: Once https://reviews.llvm.org/D79219 is in, remove the two
# redundant HAVE_ variables.
if (llvm_enable_zlib) {
values += [
"HAVE_LIBZ=1",
"HAVE_ZLIB_H=1",
"LLVM_ENABLE_ZLIB=1",
]
values += [ "LLVM_ENABLE_ZLIB=1" ]
} else {
values += [
"HAVE_LIBZ=",
"HAVE_ZLIB_H=",
"LLVM_ENABLE_ZLIB=",
]
values += [ "LLVM_ENABLE_ZLIB=" ]
}

if (llvm_enable_libxml2) {
Expand Down
4 changes: 2 additions & 2 deletions llvm/utils/gn/secondary/llvm/test/BUILD.gn
Expand Up @@ -174,9 +174,9 @@ write_lit_config("lit_site_cfg") {
}

if (llvm_enable_zlib) {
extra_values += [ "HAVE_LIBZ=1" ]
extra_values += [ "LLVM_ENABLE_ZLIB=1" ]
} else {
extra_values += [ "HAVE_LIBZ=0" ] # Must be 0.
extra_values += [ "LLVM_ENABLE_ZLIB=0" ] # Must be 0.
}
}

Expand Down

0 comments on commit 2ad5611

Please sign in to comment.