[PATCH] D43584: [test] Permit additional CFLAGS for tests to be set via config.test_cflags.
John Baldwin via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Feb 21 10:15:25 PST 2018
bsdjhb created this revision.
bsdjhb added a reviewer: sdardis.
Herald added subscribers: cfe-commits, christof.
Currently this is only planned to be used by libunwind's tests.
Repository:
rCXX libc++
https://reviews.llvm.org/D43584
Files:
utils/libcxx/test/config.py
Index: utils/libcxx/test/config.py
===================================================================
--- utils/libcxx/test/config.py
+++ utils/libcxx/test/config.py
@@ -583,6 +583,9 @@
# FIXME(EricWF): variant_size.pass.cpp requires a slightly larger
# template depth with older Clang versions.
self.cxx.addFlagIfSupported('-ftemplate-depth=270')
+ cflags = self.get_lit_conf('test_cflags')
+ if cflags:
+ self.cxx.flags += [cflags]
def configure_compile_flags_header_includes(self):
support_path = os.path.join(self.libcxx_src_root, 'test', 'support')
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D43584.135282.patch
Type: text/x-patch
Size: 623 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180221/fa07a7b2/attachment.bin>
More information about the cfe-commits
mailing list