aboutsummaryrefslogtreecommitdiff
path: root/compiler-rt/unittests
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2017-09-15 02:56:40 +0000
committerZachary Turner <zturner@google.com>2017-09-15 02:56:40 +0000
commit83dcb68468ebb0e2da7d768ce83592c1bccd96dc (patch)
tree280d0a1b86cff88cee5a1c29eb1c261096564215 /compiler-rt/unittests
parenta9191b55bb21c68e22198d90853ac25443b71810 (diff)
downloadllvm-83dcb68468ebb0e2da7d768ce83592c1bccd96dc.zip
llvm-83dcb68468ebb0e2da7d768ce83592c1bccd96dc.tar.gz
llvm-83dcb68468ebb0e2da7d768ce83592c1bccd96dc.tar.bz2
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. llvm-svn: 313335
Diffstat (limited to 'compiler-rt/unittests')
-rw-r--r--compiler-rt/unittests/lit.common.unit.cfg2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler-rt/unittests/lit.common.unit.cfg b/compiler-rt/unittests/lit.common.unit.cfg
index 31206e9..b08c1fe 100644
--- a/compiler-rt/unittests/lit.common.unit.cfg
+++ b/compiler-rt/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']))