diff options
author | Renato Golin <renato.golin@linaro.org> | 2015-07-31 15:25:11 +0000 |
---|---|---|
committer | Renato Golin <renato.golin@linaro.org> | 2015-07-31 15:25:11 +0000 |
commit | 7beb57c6c31ce3f1a38730d25568bbf01d13d438 (patch) | |
tree | 7603c15be289dc206181c6cd168e55d01c0fe7c1 /test | |
parent | 52cf98bc52a16fba2139909ad01b3f1b364ce401 (diff) |
[libc++abi] Allow use just compiled clang++ for tests
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.
git-svn-id: https://llvm.org/svn/llvm-project/libcxxabi/trunk@243752 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/lit.cfg | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/lit.cfg b/test/lit.cfg index ae46288..e10dfe1 100644 --- a/test/lit.cfg +++ b/test/lit.cfg @@ -53,6 +53,11 @@ if obj_root is None: 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 |