[compiler-rt] Use ZLIB_FOUND not LLVM_ENABLE_ZLIB
authorAlex Brachet <abrachet@google.com>
Thu, 25 May 2023 18:55:47 +0000 (18:55 +0000)
committerAlex Brachet <abrachet@google.com>
Thu, 25 May 2023 18:55:47 +0000 (18:55 +0000)
commitfe2f0ab37c33617c23e83d4999117e54fc34c14b
tree9e5c8a98f32382b83221f00df860040ae644372f
parent53333c8d44d690f6e8fd6f31803aecb17329cdb5
[compiler-rt] Use ZLIB_FOUND not LLVM_ENABLE_ZLIB

LLVM_ENABLE_ZLIB is set to On by default and does not imply that ZLIB
was actually found, only being set to FORCE_ON would imply that it was
found before control reached compiler-rt/test/CMakeLists.txt. Instead,
use ZLIB_FOUND which guarantees that zlib is available.

Differential Revision: https://reviews.llvm.org/D151229
compiler-rt/test/CMakeLists.txt
compiler-rt/test/lit.common.cfg.py
compiler-rt/test/lit.common.configured.in