[llvm] r289673 - lit.cfg: Check value of build config rather than converting to boolean

Derek Schuff via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 14 09:05:35 PST 2016


Author: dschuff
Date: Wed Dec 14 11:05:34 2016
New Revision: 289673

URL: http://llvm.org/viewvc/llvm-project?rev=289673&view=rev
Log:
lit.cfg: Check value of build config rather than converting to boolean

This is a CMake var which never evaluates to false.

Modified:
    llvm/trunk/test/lit.cfg

Modified: llvm/trunk/test/lit.cfg
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/lit.cfg?rev=289673&r1=289672&r2=289673&view=diff
==============================================================================
--- llvm/trunk/test/lit.cfg (original)
+++ llvm/trunk/test/lit.cfg Wed Dec 14 11:05:34 2016
@@ -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)




More information about the llvm-commits mailing list