[PATCH] D57366: Add zlib feature to compiler-rt lit config

Jeremy Morse via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 29 04:01:04 PST 2019


This revision was automatically updated to reflect the committed changes.
Closed by commit rL352483: Add zlib feature test to lit configuration (authored by jmorse, committed by ).
Herald added a subscriber: delcypher.

Changed prior to commit:
  https://reviews.llvm.org/D57366?vs=184000&id=184060#toc

Repository:
  rL LLVM

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D57366/new/

https://reviews.llvm.org/D57366

Files:
  compiler-rt/trunk/test/lit.common.cfg
  compiler-rt/trunk/test/lit.common.configured.in


Index: compiler-rt/trunk/test/lit.common.cfg
===================================================================
--- compiler-rt/trunk/test/lit.common.cfg
+++ compiler-rt/trunk/test/lit.common.cfg
@@ -98,6 +98,9 @@
 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(
Index: compiler-rt/trunk/test/lit.common.configured.in
===================================================================
--- compiler-rt/trunk/test/lit.common.configured.in
+++ compiler-rt/trunk/test/lit.common.configured.in
@@ -46,6 +46,8 @@
 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:


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D57366.184060.patch
Type: text/x-patch
Size: 960 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190129/5b365d23/attachment.bin>


More information about the llvm-commits mailing list