diff --git a/llvm/test/tools/llvm-exegesis/lit.local.cfg b/llvm/test/tools/llvm-exegesis/lit.local.cfg --- a/llvm/test/tools/llvm-exegesis/lit.local.cfg +++ b/llvm/test/tools/llvm-exegesis/lit.local.cfg @@ -14,6 +14,9 @@ # only know that at runtime, so we try to measure an empty code snippet # and bail out on error. llvm_exegesis_exe = lit.util.which('llvm-exegesis', config.llvm_tools_dir) + if llvm_exegesis_exe is None: + print('could not find llvm-exegesis') + return False try: return_code = subprocess.call( [llvm_exegesis_exe, '-mode', mode, '-snippets-file', '/dev/null'] + extra_options,