path: root/unittests
diff options
authorZachary Turner <>2017-09-15 02:56:40 +0000
committerZachary Turner <>2017-09-15 02:56:40 +0000
commite765db3a13ea619ba6a7521e81545c96d8b336a1 (patch)
tree81429db48ab6d393a99255bb592c9b83b4b4f15c /unittests
parent973030f71da9f1620364652baca380d2df6bfd8d (diff)
Revert "[lit] Force site configs to run before source-tree configs"
This patch is still breaking several multi-stage compiler-rt bots. I already know what the fix is, but I want to get the bots green for now and then try re-applying in the morning. git-svn-id: 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests')
1 files changed, 1 insertions, 1 deletions
diff --git a/unittests/lit.common.unit.cfg b/unittests/lit.common.unit.cfg
index 31206e913..b08c1fe12 100644
--- a/unittests/lit.common.unit.cfg
+++ b/unittests/lit.common.unit.cfg
@@ -16,7 +16,7 @@ config.test_format = lit.formats.GoogleTest(llvm_build_mode, "Test")
config.suffixes = []
# Tweak PATH to include llvm tools dir.
-llvm_tools_dir = config.llvm_tools_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']))