summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxim Kuvyrkov <maxim.kuvyrkov@linaro.org>2021-07-08 19:02:39 +0000
committerMaxim Kuvyrkov <maxim.kuvyrkov@linaro.org>2021-07-08 19:02:39 +0000
commite96366dcda86bb862ab78e42aaab3343e6c09ead (patch)
tree0f3b6fff0243ef34ac7cb6a039511759e57733cb
parent83e519ea6b0f048fce9d1ae4d7f3fca741036be2 (diff)
round-robin.sh: Fix cross-testing of GCC
Change-Id: I201f9510fdb1661862fbe2d492d0c46ce0952fb6
-rw-r--r--round-robin.sh14
1 files changed, 8 insertions, 6 deletions
diff --git a/round-robin.sh b/round-robin.sh
index 0b105581..745c5e00 100644
--- a/round-robin.sh
+++ b/round-robin.sh
@@ -386,13 +386,15 @@ build_abe ()
# to do on a check step.
if ! $check; then
set +f; rm -rf builds/*/*/$project-*; set -f
- fi
- if [ x"$project" = x"gcc" ] && [ -d builds/destdir ]; 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
+ if [ x"$project" = x"gcc" ] && [ -d builds/destdir ]; 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++" \
+ -o -path "*/bin/*cpp" -o -path "*/bin/*c++" \) -delete
+ fi
fi
PATH=$(pwd)/bin:$PATH