From dbf8bef5ffb4d9e931fb6714f86eff7a30cedf39 Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Mon, 30 Dec 2024 18:36:46 +0000 Subject: [PATCH] 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 --- script/trees | 3 +++ 1 file changed, 3 insertions(+) diff --git a/script/trees b/script/trees index 09240af..a86048b 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 }