summaryrefslogtreecommitdiff
path: root/script
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2024-12-30 18:36:46 +0000
committerLeah Rowe <leah@libreboot.org>2024-12-30 18:36:46 +0000
commitad137eae89dd05254b7cfe9cc5816616f640749e (patch)
tree5ee1bdd93d09f3d9bb3ff6962cd14f47b33bab23 /script
parentcfb6de94c3367d761e3db4d549c03e1a8360b0a3 (diff)
trees: only symlink host gcc/gnat to build xgcc
In general, we don't want to mess with the hostcc, unless we have to. To avoid other breakage, clear what we did after crossgcc has compiled. This is a follow-up to the previous patches, matching gcc to gnat versions and vice versa, when compiling crossgcc. Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'script')
-rwxr-xr-xscript/trees3
1 files changed, 3 insertions, 0 deletions
diff --git a/script/trees b/script/trees
index 09240af0..a86048b4 100755
--- a/script/trees
+++ b/script/trees
@@ -216,6 +216,9 @@ check_cross_compiler()
make -C "$cbdir" crossgcc-$xfix $xgccargs || \
make -C "$cbdir" crossgcc-$xfix $xgccargs || \
$err "!mkxgcc $project/$xtree '$xfix' '$xgccargs'"
+
+ # we only want to mess with hostcc to build xgcc
+ rm -f xbmkpath/* || $err "Cannot clear xbmkpath/"; :
done; return 0
}