This commit is contained in:
parent
ac56b01ae0
commit
22a109e4b4
@ -161,6 +161,7 @@ function build() {
|
|||||||
|
|
||||||
# if have the -m option, then build for multiple architectures
|
# if have the -m option, then build for multiple architectures
|
||||||
if [ $MULTIBUILD -eq 1 ]; then
|
if [ $MULTIBUILD -eq 1 ]; then
|
||||||
|
echo "Building for multiple architectures"
|
||||||
# get all the architectures from the musl-cross-make directory
|
# get all the architectures from the musl-cross-make directory
|
||||||
local musl_toolchains
|
local musl_toolchains
|
||||||
mapfile -t musl_toolchains < <(ls -d "${MUSL_ROOT_PATH}/"*)
|
mapfile -t musl_toolchains < <(ls -d "${MUSL_ROOT_PATH}/"*)
|
||||||
@ -176,14 +177,15 @@ function build() {
|
|||||||
buildthis="true"
|
buildthis="true"
|
||||||
fi
|
fi
|
||||||
if [ "$buildthis" = "true" ]; then
|
if [ "$buildthis" = "true" ]; then
|
||||||
echo "Building for $arch with $tchain"
|
echo "Building for toolchain $arch from $tchain"
|
||||||
set_current_arch "$tchain"
|
set_current_arch "$arch"
|
||||||
build_arch "$CMAKE_DIR"
|
build_arch "$CMAKE_DIR"
|
||||||
else
|
else
|
||||||
echo "Skipping $tchain"
|
echo "Skipping $tchain"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
else
|
else
|
||||||
|
echo "Building for host architecture $HOSTARCH"
|
||||||
set_current_arch "$HOSTARCH-linux-musl-native"
|
set_current_arch "$HOSTARCH-linux-musl-native"
|
||||||
build_arch "$CMAKE_DIR"
|
build_arch "$CMAKE_DIR"
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user