summary refs log tree commit diff
path: root/configure
diff options
context:
space:
mode:
authorBrian Anderson <banderson@mozilla.com>2016-12-22 22:00:21 +0000
committerBrian Anderson <banderson@mozilla.com>2016-12-22 22:33:42 +0000
commit7d428b71dec973d6f53e16d18af7e2751321aafe (patch)
tree870e68eaeb33025b7ec08d6b696ecb22b730489b /configure
parent17d873c2db77d029b8fe26d57b676e5797e99441 (diff)
downloadrust-7d428b71dec973d6f53e16d18af7e2751321aafe.tar.gz
rust-7d428b71dec973d6f53e16d18af7e2751321aafe.zip
Delete the llvm submodule lockfile when configuring on the bots
This should fix the periodic error that .git/modules/src/llvm/index.lock
exists on the mac slaves.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure12
1 files changed, 12 insertions, 0 deletions
diff --git a/configure b/configure
index e495c0d3abd..4f1e8f656ae 100755
--- a/configure
+++ b/configure
@@ -917,6 +917,18 @@ case $CFG_BUILD in
 esac
 putvar CFG_LLDB_PYTHON
 
+# Do some sanity checks if running on buildbot
+# (these env vars are set by rust-buildbot)
+if [ -n "$RUST_DIST_SERVER" -a -n "$ALLOW_NONZERO_RLIMIT_CORE" ]; then
+   # Frequently the llvm submodule directory is broken by the build
+   # being killed
+   llvm_lock="${CFG_SRC_DIR}/.git/modules/src/llvm/index.lock"
+   if [ -e "$llvm_lock" ]; then
+       step_msg "removing $llvm_lock"
+       rm -f "$llvm_lock"
+   fi
+fi
+
 step_msg "looking for target specific programs"
 
 probe CFG_ADB        adb