summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support
diff options
context:
space:
mode:
authorSaleem Abdulrasool <compnerd@compnerd.org>2020-01-01 16:57:00 -0800
committerSaleem Abdulrasool <compnerd@compnerd.org>2020-01-01 17:02:16 -0800
commite6c7ed6d2164a0659fd9f6ee44f1375d301e3cad (patch)
treecbd6317d1a64777c56bf1a7bdba9c516b314662e /llvm/lib/Support
parent68a235d07f9e7049c7eb0c8091f37e385327ac28 (diff)
downloadbcm5719-llvm-e6c7ed6d2164a0659fd9f6ee44f1375d301e3cad.tar.gz
bcm5719-llvm-e6c7ed6d2164a0659fd9f6ee44f1375d301e3cad.zip
build: make `LLVM_ENABLE_ZLIB` a tri-bool for users
Treat the flag `LLVM_ENABLE_ZLIB` as a tri-bool, `FORCE_ON` being `ON`, and `ON` being an auto-detect. This is needed as many of the builders enable the flag without having zlib available.
Diffstat (limited to 'llvm/lib/Support')
-rw-r--r--llvm/lib/Support/CMakeLists.txt5
1 files changed, 4 insertions, 1 deletions
diff --git a/llvm/lib/Support/CMakeLists.txt b/llvm/lib/Support/CMakeLists.txt
index 2fa641ff5da..26332d4f539 100644
--- a/llvm/lib/Support/CMakeLists.txt
+++ b/llvm/lib/Support/CMakeLists.txt
@@ -1,4 +1,7 @@
-set(system_libs ${ZLIB_LIBRARY})
+if(LLVM_ENABLE_ZLIB)
+ set(system_libs ${ZLIB_LIBRARY})
+endif()
+
if( MSVC OR MINGW )
# libuuid required for FOLDERID_Profile usage in lib/Support/Windows/Path.inc.
# advapi32 required for CryptAcquireContextW in lib/Support/Windows/Path.inc.
OpenPOWER on IntegriCloud