Skip to content

Commit

Permalink
lit.cfg: Check value of build config rather than converting to boolean
Browse files Browse the repository at this point in the history
This is a CMake var which never evaluates to false.

llvm-svn: 289673
  • Loading branch information
dschuff committed Dec 14, 2016
1 parent 4fe99e1 commit ebd8110
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llvm/test/lit.cfg
Expand Up @@ -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)
Expand Down

0 comments on commit ebd8110

Please sign in to comment.