[PATCH] D11522: [libc++abi] Allow use just compiled clang++ for tests

Renato Golin renato.golin at linaro.org
Mon Jul 27 06:19:06 PDT 2015


rengolin created this revision.
rengolin added reviewers: mclow.lists, jroelofs, theraven.
rengolin added a subscriber: llvm-commits.
rengolin set the repository for this revision to rL LLVM.

Currently, the tests assume the system compiler is the one we want
to test, but if we build libcxxabi together with LLVM+Clang, it'll
get the wrong compiler.

This patch allows us to test if we have clang++ in our /bin directory,
and if so, use it.

Repository:
  rL LLVM

http://reviews.llvm.org/D11522

Files:
  test/lit.cfg

Index: test/lit.cfg
===================================================================
--- test/lit.cfg
+++ test/lit.cfg
@@ -53,6 +53,11 @@
 
 config.test_exec_root = os.path.join(obj_root, 'test')
 
+# Check if we have produced a Clang with this build (in-tree)
+this_clang = os.path.join(obj_root, '../../bin/clang++')
+if os.path.exists(this_clang):
+    config.cxx_under_test = this_clang
+
 cfg_variant = getattr(config, 'configuration_variant', 'libcxxabi')
 if cfg_variant:
     print 'Using configuration variant: %s' % cfg_variant


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D11522.30686.patch
Type: text/x-patch
Size: 541 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150727/88d40d6e/attachment.bin>


More information about the llvm-commits mailing list