diff --git a/build/build.sh b/build/build.sh index 5d60d30..7a321c5 100755 --- a/build/build.sh +++ b/build/build.sh @@ -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 \ No newline at end of file diff --git a/build/build_.sh b/build/build_.sh index b42d9a6..63c6bf2 100755 --- a/build/build_.sh +++ b/build/build_.sh @@ -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 diff --git a/run_tree/osx/arm64/prod/lumenarium b/run_tree/osx/arm64/prod/lumenarium new file mode 100755 index 0000000..e3c8be8 Binary files /dev/null and b/run_tree/osx/arm64/prod/lumenarium differ diff --git a/run_tree/osx/arm64/prod/lumenarium_arm64 b/run_tree/osx/arm64/prod/lumenarium_arm64 new file mode 100755 index 0000000..e3c8be8 Binary files /dev/null and b/run_tree/osx/arm64/prod/lumenarium_arm64 differ diff --git a/run_tree/osx/intel/debug/lumenarium b/run_tree/osx/intel/debug/lumenarium index 35e9ebb..9cce34e 100755 Binary files a/run_tree/osx/intel/debug/lumenarium and b/run_tree/osx/intel/debug/lumenarium differ diff --git a/run_tree/osx/intel/prod/lumenarium b/run_tree/osx/intel/prod/lumenarium new file mode 100755 index 0000000..9ed88e2 Binary files /dev/null and b/run_tree/osx/intel/prod/lumenarium differ