Index: compiler-rt/test/fuzzer/lit.cfg =================================================================== --- compiler-rt/test/fuzzer/lit.cfg +++ compiler-rt/test/fuzzer/lit.cfg @@ -24,6 +24,9 @@ # the test runner updated. config.test_format = lit.formats.ShTest(execute_external) +if config.have_zlib == "1": + config.available_features.add("zlib") + # LeakSanitizer is not supported on OSX or Windows right now. if (sys.platform.startswith('darwin') or sys.platform.startswith('freebsd') or Index: compiler-rt/test/fuzzer/lit.site.cfg.in =================================================================== --- compiler-rt/test/fuzzer/lit.site.cfg.in +++ compiler-rt/test/fuzzer/lit.site.cfg.in @@ -12,6 +12,8 @@ config.llvm_library_dir = "@LLVM_LIBRARY_DIR@" config.target_triple = "@TARGET_TRIPLE@" +config.have_zlib = "@HAVE_LIBZ@" + # Load common config for all compiler-rt lit tests. lit_config.load_config(config, "@COMPILER_RT_BINARY_DIR@/test/lit.common.configured")