diff options
author | Daniel Dunbar <daniel@zuster.org> | 2012-10-18 20:43:11 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2012-10-18 20:43:11 +0000 |
commit | b288ad8e3627c25747ba68d81a70bfe111efaa16 (patch) | |
tree | 493b387eefaba4d2814c7a1ce0fbf148b59b7b2b /test/lit.cfg | |
parent | 44a83f092029fa76bce05ff0c0598afc55215767 (diff) |
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.cfg | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/lit.cfg b/test/lit.cfg index f24a854dc7a..9273cd7b930 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: |