diff options
-rw-r--r-- | lld/test/lit.cfg | 4 | ||||
-rw-r--r-- | lld/test/lit.site.cfg.in | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/lld/test/lit.cfg b/lld/test/lit.cfg index a8943bd0d30..d1dd249e1b4 100644 --- a/lld/test/lit.cfg +++ b/lld/test/lit.cfg @@ -191,6 +191,10 @@ if lit_config.useValgrind: if execute_external: config.available_features.add('shell') +# zlib compression library +if config.have_zlib == "1": + config.available_features.add("zlib") + # Running on Darwin OS if platform.system() in ['Darwin']: config.available_features.add('system-linker-mach-o') diff --git a/lld/test/lit.site.cfg.in b/lld/test/lit.site.cfg.in index 09b29a9cbd8..5293f24c125 100644 --- a/lld/test/lit.site.cfg.in +++ b/lld/test/lit.site.cfg.in @@ -8,6 +8,7 @@ config.lit_tools_dir = "@LLVM_LIT_TOOLS_DIR@" config.lld_obj_root = "@LLD_BINARY_DIR@" config.target_triple = "@TARGET_TRIPLE@" config.python_executable = "@PYTHON_EXECUTABLE@" +config.have_zlib = "@HAVE_LIBZ@" # Support substitution of the tools and libs dirs with user parameters. This is # used when we can't determine the tool dir at configuration time. |