diff options
Diffstat (limited to 'test/lit.cfg')
-rw-r--r-- | test/lit.cfg | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/test/lit.cfg b/test/lit.cfg index 7e6760e..7f26cdf 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 |