test: Add a lit config variable to check if LTO is enabled.
[oota-llvm.git] / test / lit.cfg
index f24a854dc7a9d8fdbdb230f77dfca36dc0dc4fff..9273cd7b930d9e96415b49476d6713d7f2975e83 100644 (file)
@@ -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: