X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=lib%2FFuzzer%2Ftest%2Flit.cfg;h=2140a97668b37971f2bb0d079ca12478c04f56be;hb=cddc3e03e4ec99c0268c03a126195173e519ed58;hp=834a16aefe73ac42cf34fd034ac23eb8a916aee6;hpb=4310bcf018d080c679c61f59d2db434ccf06a412;p=android-x86%2Fexternal-llvm.git diff --git a/lib/Fuzzer/test/lit.cfg b/lib/Fuzzer/test/lit.cfg index 834a16aefe7..2140a97668b 100644 --- a/lib/Fuzzer/test/lit.cfg +++ b/lib/Fuzzer/test/lit.cfg @@ -5,10 +5,11 @@ config.test_format = lit.formats.ShTest(True) config.suffixes = ['.test'] config.test_source_root = os.path.dirname(__file__) -# Tweak PATH to include llvm tools dir. +# Tweak PATH to include llvm tools dir and current exec dir. llvm_tools_dir = getattr(config, 'llvm_tools_dir', None) if (not llvm_tools_dir) or (not os.path.exists(llvm_tools_dir)): lit_config.fatal("Invalid llvm_tools_dir config attribute: %r" % llvm_tools_dir) -path = os.path.pathsep.join((llvm_tools_dir, config.environment['PATH'])) +path = os.path.pathsep.join((llvm_tools_dir, config.test_exec_root, + config.environment['PATH'])) config.environment['PATH'] = path