From 8a3da4223842106d66e0e5e99237e8770086e350 Mon Sep 17 00:00:00 2001 From: Ella Stanforth Date: Tue, 19 Apr 2022 18:32:22 +0000 Subject: [PATCH] fix --- autobuild.sh | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/autobuild.sh b/autobuild.sh index ab778be..5595424 100755 --- a/autobuild.sh +++ b/autobuild.sh @@ -8,6 +8,16 @@ cd build [ -d 'iglunix' ] || git clone --depth=1 https://github.com/iglunix/iglunix [ -d 'iglupkg' ] || git clone --depth=1 https://github.com/iglunix/iglupkg +cd iglunix-bootstrap +git pull +cd .. +cd iglunix +git pull +cd .. +cd iglupkg +git pull +cd .. + SYSROOT_S2=$(pwd)/sysroot IP=$(pwd)/iglupkg/ @@ -18,9 +28,18 @@ mkdir -p $LOGS echo === STAGE 1 === Build cross toolchain cd iglunix-bootstrap -MAKE=gmake bad --gmake ./boot.sh + +if command -V bad 2> /dev/null; then + MAKE=gmake bad --gmake ./boot.sh +else + MAKE=make ./boot.sh +fi + SYSROOT_S1=$(pwd)/sysroot +export CC=$(pwd)/x86_64-iglunix-linux-musl-cc.sh +export CXX=$(pwd)/x86_64-iglunix-linux-musl-c++.sh + cd .. echo === STAGE 1 === Done