aboutsummaryrefslogtreecommitdiff
path: root/test/lit.cfg
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2012-10-26 02:19:02 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2012-10-26 02:19:02 +0000
commitd2930d364adcaef1eac0e1d5d8dc0fa4b7616f45 (patch)
treed1e7eaf52187f983810b89ae6af05e69563ac838 /test/lit.cfg
parent30675b12fde1eac924dfe4a790aa13488de4057b (diff)
Fix unexpected passes. These test do work with LTO on linux. I tested both
a cmake and an autoconf build. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@166748 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/lit.cfg')
-rw-r--r--test/lit.cfg7
1 files changed, 4 insertions, 3 deletions
diff --git a/test/lit.cfg b/test/lit.cfg
index 7e6760e95a..7f26cdf03d 100644
--- a/test/lit.cfg
+++ b/test/lit.cfg
@@ -5,6 +5,7 @@
import os
import sys
import re
+import platform
# name: The name of this test suite.
config.name = 'LLVM'
@@ -241,9 +242,9 @@ else:
if loadable_module:
config.available_features.add('loadable_module')
-# LTO
-if config.lto_is_enabled == "1":
- config.available_features.add('lto')
+# LTO on OS X
+if config.lto_is_enabled == "1" and platform.system() == "Darwin":
+ config.available_features.add('lto_on_osx')
# llc knows whether he is compiled with -DNDEBUG.
import subprocess