about summary refs log tree commit diff homepage
path: root/test/lit.cfg
diff options
context:
space:
mode:
authorDan Liew <daniel.liew@imperial.ac.uk>2014-01-13 02:18:37 +0000
committerDan Liew <daniel.liew@imperial.ac.uk>2014-01-20 13:40:25 +0000
commit313390c68fc808d5fe7cf746a7a65b1e018362dc (patch)
treed5d33b2aa90a79a2691ee6999857e9ce3bf093fc /test/lit.cfg
parentf5afeb84a847e3876122211913b7117fd3ad1862 (diff)
downloadklee-313390c68fc808d5fe7cf746a7a65b1e018362dc.tar.gz
Allow llvm-lit from 2.9 to work by hacking %T substitution variable.
Diffstat (limited to 'test/lit.cfg')
-rw-r--r--test/lit.cfg4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/lit.cfg b/test/lit.cfg
index 191461b6..f81576f9 100644
--- a/test/lit.cfg
+++ b/test/lit.cfg
@@ -77,6 +77,10 @@ for sub in ['llvmgcc', 'llvmgxx']:
 config.substitutions.append(('%kleaver', 'kleaver'))
 config.substitutions.append(('%klee', 'klee'))
 
+# LLVM < 3.0 doesn't Support %T directive
+if int(config.llvm_version_major) == 2:
+    config.substitutions.append(('%T','Output'))
+
 def klee_supports_posix_runtime():
     return int(site_exp['ENABLE_POSIX_RUNTIME'])