BuildSystem: Fix bugs in new build system

I had not tested the new build system with clean toolchain build
but it seems to work now.
This commit is contained in:
2023-10-24 16:48:46 +03:00
parent 2d0da93ac4
commit c71ac588b2
13 changed files with 106 additions and 90 deletions

View File

@@ -1,5 +1,5 @@
if [[ -z $BANAN_ROOT_DIR ]]; then
if [[ -z $BANAN_SCRIPT_DIR ]]; then
if ! [[ -z $BANAN_SCRIPT_DIR ]]; then
export BANAN_ROOT_DIR=$BANAN_SCRIPT_DIR/..
else
echo "You must set the BANAN_ROOT_DIR environment variable" >&2
@@ -8,8 +8,7 @@ if [[ -z $BANAN_ROOT_DIR ]]; then
fi
if [[ -z $BANAN_ARCH ]]; then
echo "You must set the BANAN_ARCH environment variable" >&2
exit 1
export BANAN_ARCH=x86_64
fi
export BANAN_TOOLCHAIN_DIR=$BANAN_ROOT_DIR/toolchain