building for different architectures on osx
This commit is contained in:
parent
b680f90c24
commit
d7520367e2
|
@ -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
|
|
@ -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.
Loading…
Reference in New Issue