diff options
author | Petr Hosek <phosek@google.com> | 2020-04-30 13:07:13 -0700 |
---|---|---|
committer | Petr Hosek <phosek@google.com> | 2020-07-14 19:30:08 -0700 |
commit | 8c1a79dc12f3cc600e16153961cd8cc50ba2c33b (patch) | |
tree | 0e70b9a57a02b6f116b0ec58ab02ef1641833ca4 /compiler-rt/test/lit.common.configured.in | |
parent | 6b78ed60708b56d85c6d028e9a06ce24ec3c1ae5 (diff) | |
download | llvm-8c1a79dc12f3cc600e16153961cd8cc50ba2c33b.tar.gz |
[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 'compiler-rt/test/lit.common.configured.in')
-rw-r--r-- | compiler-rt/test/lit.common.configured.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler-rt/test/lit.common.configured.in b/compiler-rt/test/lit.common.configured.in index 4a3e268c8a6f..6686962073ad 100644 --- a/compiler-rt/test/lit.common.configured.in +++ b/compiler-rt/test/lit.common.configured.in @@ -56,7 +56,7 @@ elif config.android: else: set_default("target_suffix", "-%s" % config.target_arch) -set_default("have_zlib", "@HAVE_LIBZ@") +set_default("have_zlib", "@LLVM_ENABLE_ZLIB@") set_default("libcxx_used", "@LLVM_LIBCXX_USED@") # LLVM tools dir can be passed in lit parameters, so try to |