bootstrap: Use ./pre-inst-env mescc default.

* configure.sh: When CC is mescc, M2-Planet or unset, use
"./pre-inst-env mescc" as default.
This commit is contained in:
Jan (janneke) Nieuwenhuizen 2021-01-01 08:52:49 +01:00
parent 6ca9855f70
commit 7c3d55323d
No known key found for this signature in database
GPG Key ID: F3C1A0D9C1D65273
1 changed files with 7 additions and 1 deletions

View File

@ -221,7 +221,13 @@ elif $CC --version | grep tcc; then
compiler=gcc
else
compiler=mescc
AR=${AR-$PWD/scripts/mesar}
if ! $CC --version; then
CC="$PWD/pre-inst-env mescc"
fi
if test "$CC" = "M2-Planet"; then
CC="$PWD/pre-inst-env mescc"
fi
AR=${AR-$PWD/pre-inst-env mesar}
fi
AR=${AR-$(command -v ar)} || true