]> granicus.if.org Git - llvm/commitdiff
lit.cfg: Check value of build config rather than converting to boolean
authorDerek Schuff <dschuff@google.com>
Wed, 14 Dec 2016 17:05:34 +0000 (17:05 +0000)
committerDerek Schuff <dschuff@google.com>
Wed, 14 Dec 2016 17:05:34 +0000 (17:05 +0000)
This is a CMake var which never evaluates to false.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@289673 91177308-0d34-0410-b5e6-96231b3b80d8

test/lit.cfg

index 2c7a9c45ebf60beb8589e5552d1f2fd543937c8a..e0881ef21626f83bba43b1f4afbd8bf5567e5595 100644 (file)
@@ -455,7 +455,7 @@ if have_ld_plugin_support():
     config.available_features.add('ld_plugin')
 
 def have_ld64_plugin_support():
-    if (not config.llvm_tool_lto_build or config.ld64_executable == ''):
+    if (config.llvm_tool_lto_build == 'OFF' or config.ld64_executable == ''):
         return False
 
     ld_cmd = subprocess.Popen([config.ld64_executable, '-v'], stderr = subprocess.PIPE)