aboutsummaryrefslogtreecommitdiff
path: root/lld/test/lit.site.cfg.py.in
diff options
context:
space:
mode:
authorPetr Hosek <phosek@google.com>2020-04-30 13:07:13 -0700
committerPetr Hosek <phosek@google.com>2020-07-23 23:05:36 -0700
commit10b1b4a231a485f1711d576e6131f6755e008abe (patch)
tree4e35a293e15f201c473c73d1a08e8af899d24406 /lld/test/lit.site.cfg.py.in
parent228f8d896573003cba8f51b8cdaf180f22f46124 (diff)
downloadllvm-10b1b4a231a485f1711d576e6131f6755e008abe.zip
llvm-10b1b4a231a485f1711d576e6131f6755e008abe.tar.gz
llvm-10b1b4a231a485f1711d576e6131f6755e008abe.tar.bz2
[CMake] Simplify CMake handling for zlib
Rather than handling zlib handling manually, use find_package from CMake to find zlib properly. Use this to normalize the LLVM_ENABLE_ZLIB, HAVE_ZLIB, HAVE_ZLIB_H. Furthermore, require zlib if LLVM_ENABLE_ZLIB is set to YES, which requires the distributor to explicitly select whether zlib is enabled or not. This simplifies the CMake handling and usage in the rest of the tooling. This is a reland of abb0075 with all followup changes and fixes that should address issues that were reported in PR44780. Differential Revision: https://reviews.llvm.org/D79219
Diffstat (limited to 'lld/test/lit.site.cfg.py.in')
-rw-r--r--lld/test/lit.site.cfg.py.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/lld/test/lit.site.cfg.py.in b/lld/test/lit.site.cfg.py.in
index 4aa2fcd..3d4c51f 100644
--- a/lld/test/lit.site.cfg.py.in
+++ b/lld/test/lit.site.cfg.py.in
@@ -14,7 +14,7 @@ config.lld_libs_dir = "@LLVM_LIBRARY_OUTPUT_INTDIR@"
config.lld_tools_dir = "@LLVM_RUNTIME_OUTPUT_INTDIR@"
config.target_triple = "@TARGET_TRIPLE@"
config.python_executable = "@Python3_EXECUTABLE@"
-config.have_zlib = @HAVE_LIBZ@
+config.have_zlib = @LLVM_ENABLE_ZLIB@
config.sizeof_void_p = @CMAKE_SIZEOF_VOID_P@
# Support substitution of the tools and libs dirs with user parameters. This is