summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2025-05-04 08:14:44 +0100
committerLeah Rowe <leah@libreboot.org>2025-05-04 08:15:00 +0100
commitfc71e52fdfc559d207ea54059a86edb81e928e33 (patch)
tree952248f694ad251630d27a560a6a9c6f7960df71
parent184871bc17cdc5716d8d8bcfff03b0f7412b7a1a (diff)
mk: tidy up xgccargs handling
Signed-off-by: Leah Rowe <leah@libreboot.org>
-rwxr-xr-xmk5
1 files changed, 2 insertions, 3 deletions
diff --git a/mk b/mk
index 49cebaf1..5a4afadf 100755
--- a/mk
+++ b/mk
@@ -310,9 +310,8 @@ check_cross_compiler()
check_gnu_path gcc gnat || x_ check_gnu_path gnat gcc
xfix="${1%-*}" && [ "$xfix" = "x86_64" ] && xfix="x64"
- xgccargs="UPDATED_SUBMODULES=1 CPUS=$XBMK_THREADS"
- make -C "$cbdir" crossgcc-$xfix $xgccargs || \
- x_ make -C "$cbdir" crossgcc-$xfix $xgccargs
+ xgccargs="crossgcc-$xfix UPDATED_SUBMODULES=1 CPUS=$XBMK_THREADS"
+ make -C "$cbdir" $xgccargs || x_ make -C "$cbdir" $xgccargs
# we only want to mess with hostcc to build xgcc
remkdir "$XBMK_CACHE/gnupath"