summaryrefslogtreecommitdiffstats
path: root/llvm/test/lit.cfg
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/lit.cfg')
-rw-r--r--llvm/test/lit.cfg6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/test/lit.cfg b/llvm/test/lit.cfg
index e0881ef2162..f3b1d1c1ed2 100644
--- a/llvm/test/lit.cfg
+++ b/llvm/test/lit.cfg
@@ -231,7 +231,7 @@ config.substitutions.append( ('%ld64', ld64_cmd) )
config.substitutions.append( ('%ocamlc',
"%s ocamlc -cclib -L%s %s" %
(config.ocamlfind_executable, llvm_lib_dir, config.ocaml_flags)) )
-if config.have_ocamlopt in ('1', 'TRUE'):
+if config.have_ocamlopt:
config.substitutions.append( ('%ocamlopt',
"%s ocamlopt -cclib -L%s -cclib -Wl,-rpath,%s %s" %
(config.ocamlfind_executable, llvm_lib_dir, llvm_lib_dir, config.ocaml_flags)) )
@@ -399,7 +399,7 @@ if lit_config.params.get("run_long_tests", None) == "true":
if not 'hexagon' in config.target_triple:
config.available_features.add("object-emission")
-if config.have_zlib == "1":
+if config.have_zlib:
config.available_features.add("zlib")
else:
config.available_features.add("nozlib")
@@ -455,7 +455,7 @@ if have_ld_plugin_support():
config.available_features.add('ld_plugin')
def have_ld64_plugin_support():
- if (config.llvm_tool_lto_build == 'OFF' or config.ld64_executable == ''):
+ if not config.llvm_tool_lto_build or config.ld64_executable == '':
return False
ld_cmd = subprocess.Popen([config.ld64_executable, '-v'], stderr = subprocess.PIPE)
OpenPOWER on IntegriCloud