summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxim Kuvyrkov <maxim.kuvyrkov@linaro.org>2020-12-09 14:28:32 +0000
committerMaxim Kuvyrkov <maxim.kuvyrkov@linaro.org>2020-12-09 14:28:32 +0000
commitb1053bfe3f2de94177184246d724851c929ea596 (patch)
tree7303273751c7266999d4c11775217426f4452521
parentf3f331914980c268f2307c3d421273b4a614a170 (diff)
round-robin.sh: Fix bisection of bootstrap failures
... due to using broken just-built GCC instead of system GCC. Change-Id: I13f29eb7cf13e72eea541e5cd5bba8148dbbece3
-rw-r--r--round-robin.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/round-robin.sh b/round-robin.sh
index 1ffe7574..bb30807e 100644
--- a/round-robin.sh
+++ b/round-robin.sh
@@ -367,6 +367,13 @@ build_abe ()
set +f; rm -rf builds/*/*/$git_dir*; set -f
fi
+ if [ x"$project" = x"gcc" ]; then
+ # Delete previously-built GCC so that we avoid using it in native
+ # builds. Otherwise, when we are bisecting GCC bootstrap failure,
+ # we could use broken GCC.
+ find builds/destdir -path "*/bin/*gcc" -o -path "*/bin/*g++" -delete
+ fi
+
PATH=$(pwd)/bin:$PATH
export PATH