[llvm] 2ad5611 - [gn build] (manually) port 10b1b4a23
Nico Weber via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 24 05:38:09 PDT 2020
Author: Nico Weber
Date: 2020-07-24T08:37:57-04:00
New Revision: 2ad56119f5dc6c6af2b8ddfd9fc8c6460a7507c8
URL: https://github.com/llvm/llvm-project/commit/2ad56119f5dc6c6af2b8ddfd9fc8c6460a7507c8
DIFF: https://github.com/llvm/llvm-project/commit/2ad56119f5dc6c6af2b8ddfd9fc8c6460a7507c8.diff
LOG: [gn build] (manually) port 10b1b4a23
Added:
Modified:
llvm/utils/gn/secondary/clang/test/BUILD.gn
llvm/utils/gn/secondary/lld/test/BUILD.gn
llvm/utils/gn/secondary/llvm/include/llvm/Config/BUILD.gn
llvm/utils/gn/secondary/llvm/test/BUILD.gn
Removed:
################################################################################
diff --git a/llvm/utils/gn/secondary/clang/test/BUILD.gn b/llvm/utils/gn/secondary/clang/test/BUILD.gn
index 56feaae9a149..a0680d984823 100644
--- a/llvm/utils/gn/secondary/clang/test/BUILD.gn
+++ b/llvm/utils/gn/secondary/clang/test/BUILD.gn
@@ -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") {
diff --git a/llvm/utils/gn/secondary/lld/test/BUILD.gn b/llvm/utils/gn/secondary/lld/test/BUILD.gn
index dac50890d4ac..a6fb457cff6a 100644
--- a/llvm/utils/gn/secondary/lld/test/BUILD.gn
+++ b/llvm/utils/gn/secondary/lld/test/BUILD.gn
@@ -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" ||
diff --git a/llvm/utils/gn/secondary/llvm/include/llvm/Config/BUILD.gn b/llvm/utils/gn/secondary/llvm/include/llvm/Config/BUILD.gn
index 8fe8a46bf583..72b5796cd9aa 100644
--- a/llvm/utils/gn/secondary/llvm/include/llvm/Config/BUILD.gn
+++ b/llvm/utils/gn/secondary/llvm/include/llvm/Config/BUILD.gn
@@ -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) {
diff --git a/llvm/utils/gn/secondary/llvm/test/BUILD.gn b/llvm/utils/gn/secondary/llvm/test/BUILD.gn
index 3e72ef3c3a44..3ad1d0ba4f44 100644
--- a/llvm/utils/gn/secondary/llvm/test/BUILD.gn
+++ b/llvm/utils/gn/secondary/llvm/test/BUILD.gn
@@ -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.
}
}
More information about the llvm-commits
mailing list