aboutsummaryrefslogtreecommitdiffstats
path: root/test/lit.cfg
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2012-10-18 20:43:11 +0000
committerDaniel Dunbar <daniel@zuster.org>2012-10-18 20:43:11 +0000
commitb288ad8e3627c25747ba68d81a70bfe111efaa16 (patch)
tree493b387eefaba4d2814c7a1ce0fbf148b59b7b2b /test/lit.cfg
parent44a83f092029fa76bce05ff0c0598afc55215767 (diff)
downloadexternal_llvm-b288ad8e3627c25747ba68d81a70bfe111efaa16.zip
external_llvm-b288ad8e3627c25747ba68d81a70bfe111efaa16.tar.gz
external_llvm-b288ad8e3627c25747ba68d81a70bfe111efaa16.tar.bz2
test: Add a lit config variable to check if LTO is enabled.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@166225 91177308-0d34-0410-b5e6-96231b3b80d8
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 f24a854..9273cd7 100644
--- a/test/lit.cfg
+++ b/test/lit.cfg
@@ -245,6 +245,10 @@ else:
if loadable_module:
config.available_features.add('loadable_module')
+# LTO
+if config.lto_is_enabled == "1":
+ config.available_features.add('lto')
+
# llc knows whether he is compiled with -DNDEBUG.
import subprocess
try: