building for different architectures on osx

This commit is contained in:
Peter Slattery 2022-04-16 06:24:51 -07:00
parent b680f90c24
commit d7520367e2
6 changed files with 12 additions and 1 deletions

View File

@ -1,3 +1,3 @@
SCRIPT_REL_DIR=$(dirname "${BASH_SOURCE[0]}")
$SCRIPT_REL_DIR/build_.sh debug osx intel
$SCRIPT_REL_DIR/build_.sh prod osx arm64
# $SCRIPT_REL_DIR/build_.sh debug wasm intel

View File

@ -210,6 +210,17 @@ then
LinkerFlags=$LinkerFlags_osx
LinkerLibs=$LinkerLibs_osx
if [ "${ARCH}" == "arm64" ]
then
CompilerFlags="${CompilerFlags} -arch arm64"
elif [ "${ARCH}" == "intel" ]
then
CompilerFlags="${CompilerFlags} -arch x86_64"
else
echo "ERROR: Unrecognized Arch: ${ARCH}"
exit 0
fi
elif [ "${PLATFORM}" == "wasm" ]
then
Compiler=$Compiler_wasm

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.