Don't try to install c-index-test with BUILD_CLANG_ONLY. rdar://12492703
[oota-llvm.git] / test / lit.cfg
index 348ac8f622c7b8605ebca6990f9991aee8473273..7e6760e95ae5471df92b265b463393d81760a9d2 100644 (file)
@@ -142,17 +142,16 @@ if config.test_exec_root is None:
 # Provide a target triple for mcjit tests
 mcjit_triple = config.target_triple
 # Force ELF format on Windows
-if 'win32' in mcjit_triple.lower():
+if re.search(r'cygwin|mingw32|win32', mcjit_triple):
   mcjit_triple += "-elf"
 config.substitutions.append( ('%mcjit_triple', mcjit_triple) )
 
-# When running under valgrind, we mangle '-vg' or '-vg_leak' onto the end of the
-# triple so we can check it with XFAIL and XTARGET.
-config.target_triple += lit.valgrindTriple
-
 # Provide a substition for those tests that need to run the jit to obtain data
 # but simply want use the currently considered most reliable jit for platform
-defaultIsMCJIT='true' if 'arm' in config.target_triple else 'false'
+if 'arm' in config.target_triple:
+    defaultIsMCJIT = 'true'
+else:
+    defaultIsMCJIT = 'false'
 config.substitutions.append( ('%defaultjit', '-use-mcjit='+defaultIsMCJIT) )
 
 # Process jit implementation option
@@ -242,6 +241,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: