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. } }