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