forked from OSchip/llvm-project
lit.cfg: Check value of build config rather than converting to boolean
This is a CMake var which never evaluates to false. llvm-svn: 289673
This commit is contained in:
parent
4fe99e1431
commit
ebd8110aa1
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue