diff options
author | Petr Hosek <phosek@google.com> | 2020-07-14 19:56:10 -0700 |
---|---|---|
committer | Petr Hosek <phosek@google.com> | 2020-07-14 19:56:10 -0700 |
commit | bcd27d9d73f74f291fbd8b0fd1182e69a327be88 (patch) | |
tree | dc38a0c4853fd1143186f4ee8294227dc867d9e0 /llvm/lib/Support/Compression.cpp | |
parent | 8df7af560aebce3f3de3541d039e17331c479831 (diff) | |
download | llvm-bcd27d9d73f74f291fbd8b0fd1182e69a327be88.zip llvm-bcd27d9d73f74f291fbd8b0fd1182e69a327be88.tar.gz llvm-bcd27d9d73f74f291fbd8b0fd1182e69a327be88.tar.bz2 |
Revert "[CMake] Simplify CMake handling for zlib"
This reverts commit 8c1a79dc12f3cc600e16153961cd8cc50ba2c33b because
it fails when zlib isn't installed.
Diffstat (limited to 'llvm/lib/Support/Compression.cpp')
-rw-r--r-- | llvm/lib/Support/Compression.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Support/Compression.cpp b/llvm/lib/Support/Compression.cpp index b8c77cf..27d92f0 100644 --- a/llvm/lib/Support/Compression.cpp +++ b/llvm/lib/Support/Compression.cpp @@ -17,13 +17,13 @@ #include "llvm/Support/Compiler.h" #include "llvm/Support/Error.h" #include "llvm/Support/ErrorHandling.h" -#if LLVM_ENABLE_ZLIB +#if LLVM_ENABLE_ZLIB == 1 && HAVE_ZLIB_H #include <zlib.h> #endif using namespace llvm; -#if LLVM_ENABLE_ZLIB +#if LLVM_ENABLE_ZLIB == 1 && HAVE_LIBZ static Error createError(StringRef Err) { return make_error<StringError>(Err, inconvertibleErrorCode()); } |