Skip to content

Commit

Permalink
use linux native instead of arm64/amd64
Browse files Browse the repository at this point in the history
  • Loading branch information
valord577 committed Oct 1, 2024
1 parent 7e19ec3 commit da7f54c
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ case ${TARGET_PLATFORM} in
if [ "${CROSS_BUILD_ENABLED}" == "1" ]; then
source "${PROJ_ROOT}/env-linux-cross.sh" ${TARGET_ARCH} ${TARGET_LIBC}
else
source "${PROJ_ROOT}/env-linux.sh"
source "${PROJ_ROOT}/env-linux-native.sh"
fi
;;
"macosx" | "iphoneos" | "iphonesimulator")
Expand Down
1 change: 0 additions & 1 deletion build_linux_arm64.sh

This file was deleted.

File renamed without changes.
13 changes: 13 additions & 0 deletions env-linux.sh → env-linux-native.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,19 @@
#!/usr/bin/env bash
set -e

case "$(uname -m)" in
"aarch64")
export TARGET_ARCH="arm64"
;;
"x86_64")
export TARGET_ARCH="amd64"
;;
*)
printf "\e[1m\e[31m%s\e[0m\n" "Unsupported TARGET ARCH: '${TARGET_ARCH}'."
exit 1
;;
esac

export PARALLEL_JOBS="$(nproc)"
if command -v ccache >/dev/null 2>&1 ; then
export CCACHE_SRC="$(command -v ccache)"
Expand Down

0 comments on commit da7f54c

Please sign in to comment.