]> git.lizzy.rs Git - rust.git/commitdiff
Delete the llvm submodule lockfile when configuring on the bots
authorBrian Anderson <banderson@mozilla.com>
Thu, 22 Dec 2016 22:00:21 +0000 (22:00 +0000)
committerBrian Anderson <banderson@mozilla.com>
Thu, 22 Dec 2016 22:33:42 +0000 (22:33 +0000)
This should fix the periodic error that .git/modules/src/llvm/index.lock
exists on the mac slaves.

configure

index e495c0d3abdcaa3d550565c43fe1d652b3e2ec00..4f1e8f656ae22418ba18f942d48bff588935673f 100755 (executable)
--- 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