summaryrefslogtreecommitdiff
path: root/test/lit.cfg
diff options
context:
space:
mode:
authorJames Molloy <james.molloy@arm.com>2012-10-02 10:57:08 +0000
committerJames Molloy <james.molloy@arm.com>2012-10-02 10:57:08 +0000
commit9e36496eb39656df8894a6a1cd56f3561f6672a4 (patch)
tree94d655e2cbb1431ca5342cd03a1e3062e8713ffd /test/lit.cfg
parent1fe4fae463eba5965aa1f98600161ef7de96aaf1 (diff)
downloadllvm-9e36496eb39656df8894a6a1cd56f3561f6672a4.tar.gz
llvm-9e36496eb39656df8894a6a1cd56f3561f6672a4.tar.bz2
llvm-9e36496eb39656df8894a6a1cd56f3561f6672a4.tar.xz
Add default JIT LIT variable.
Patch by David Tweed! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@164996 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/lit.cfg')
-rw-r--r--test/lit.cfg5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/lit.cfg b/test/lit.cfg
index 6f44bb3d8c..b7c5f3ef38 100644
--- a/test/lit.cfg
+++ b/test/lit.cfg
@@ -143,6 +143,11 @@ if config.test_exec_root is None:
# triple so we can check it with XFAIL and XTARGET.
config.target_triple += lit.valgrindTriple
+# Provide a substition for those tests that need to run the jit to obtain data
+# but simply want use the currently considered most reliable jit for platform
+defaultIsMCJIT='true' if 'arm' in config.target_triple else 'false'
+config.substitutions.append( ('%defaultjit', '-use-mcjit='+defaultIsMCJIT) )
+
# Process jit implementation option
jit_impl_cfg = lit.params.get('jit_impl', None)
if jit_impl_cfg == 'mcjit':