[lld] r274730 - Correctly define "zlib" feature.
Rui Ueyama via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 6 20:55:57 PDT 2016
Author: ruiu
Date: Wed Jul 6 22:55:57 2016
New Revision: 274730
URL: http://llvm.org/viewvc/llvm-project?rev=274730&view=rev
Log:
Correctly define "zlib" feature.
We have "REQUIRES: zlib" in our test, but zlib was not defined,
so the test did not run on any platform.
Modified:
lld/trunk/test/lit.cfg
lld/trunk/test/lit.site.cfg.in
Modified: lld/trunk/test/lit.cfg
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/lit.cfg?rev=274730&r1=274729&r2=274730&view=diff
==============================================================================
--- lld/trunk/test/lit.cfg (original)
+++ lld/trunk/test/lit.cfg Wed Jul 6 22:55:57 2016
@@ -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')
Modified: lld/trunk/test/lit.site.cfg.in
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/lit.site.cfg.in?rev=274730&r1=274729&r2=274730&view=diff
==============================================================================
--- lld/trunk/test/lit.site.cfg.in (original)
+++ lld/trunk/test/lit.site.cfg.in Wed Jul 6 22:55:57 2016
@@ -8,6 +8,7 @@ config.lit_tools_dir = "@LLVM_LIT_TOOLS_
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.
More information about the llvm-commits
mailing list