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

Matthew Voss via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 28 17:32:56 PST 2019


ormris updated this revision to Diff 184000.
ormris added a comment.

Update again due to git confusion.


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

https://reviews.llvm.org/D57366

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


Index: compiler-rt/test/lit.common.configured.in
===================================================================
--- compiler-rt/test/lit.common.configured.in
+++ compiler-rt/test/lit.common.configured.in
@@ -46,6 +46,8 @@
 else:
   set_default("target_suffix", "-%s" % config.target_arch)
 
+config.have_zlib = "@HAVE_LIBZ"
+
 # LLVM tools dir can be passed in lit parameters, so try to
 # apply substitution.
 try:
Index: compiler-rt/test/lit.common.cfg
===================================================================
--- compiler-rt/test/lit.common.cfg
+++ compiler-rt/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(


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


More information about the llvm-commits mailing list