[compiler-rt] r352483 - Add zlib feature test to lit configuration
Jeremy Morse via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 29 04:00:02 PST 2019
Author: jmorse
Date: Tue Jan 29 04:00:01 2019
New Revision: 352483
URL: http://llvm.org/viewvc/llvm-project?rev=352483&view=rev
Log:
Add zlib feature test to lit configuration
Some new tests in libfuzzer have dependencies on zlib: add a feature test
for zlib so that we can add a REQUIRES field to the relevant tests.
Patch by Matthew Voss.
Differential Revision: https://reviews.llvm.org/D57366
Modified:
compiler-rt/trunk/test/lit.common.cfg
compiler-rt/trunk/test/lit.common.configured.in
Modified: compiler-rt/trunk/test/lit.common.cfg
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/lit.common.cfg?rev=352483&r1=352482&r2=352483&view=diff
==============================================================================
--- compiler-rt/trunk/test/lit.common.cfg (original)
+++ compiler-rt/trunk/test/lit.common.cfg Tue Jan 29 04:00:01 2019
@@ -98,6 +98,9 @@ config.available_features.add(config.hos
if re.match(r'^x86_64.*-linux', config.target_triple):
config.available_features.add("x86_64-linux")
+if config.have_zlib == "1":
+ config.available_features.add("zlib")
+
# Use ugly construction to explicitly prohibit "clang", "clang++" etc.
# in RUN lines.
config.substitutions.append(
Modified: compiler-rt/trunk/test/lit.common.configured.in
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/lit.common.configured.in?rev=352483&r1=352482&r2=352483&view=diff
==============================================================================
--- compiler-rt/trunk/test/lit.common.configured.in (original)
+++ compiler-rt/trunk/test/lit.common.configured.in Tue Jan 29 04:00:01 2019
@@ -46,6 +46,8 @@ if config.enable_per_target_runtime_dir:
else:
set_default("target_suffix", "-%s" % config.target_arch)
+set_default("have_zlib", "@HAVE_LIBZ@")
+
# LLVM tools dir can be passed in lit parameters, so try to
# apply substitution.
try:
More information about the llvm-commits
mailing list