From: Brendan Hansen Date: Wed, 22 Nov 2023 20:29:38 +0000 (-0600) Subject: fixed: `darwin-wasmer-arm64` runtime target X-Git-Url: https://git.brendanfh.com/?a=commitdiff_plain;h=66aa7694010db9052139e37c27c6a36583010dd3;p=onyx.git fixed: `darwin-wasmer-arm64` runtime target --- diff --git a/runtime/build.sh b/runtime/build.sh index a4ba6aeb..8b0a2fea 100755 --- a/runtime/build.sh +++ b/runtime/build.sh @@ -11,11 +11,15 @@ FLAGS="" if [ "$(uname)" = "Darwin" ]; then FLAGS="$FLAGS -framework Security" fi +if [ ! -z ${ONYX_TARGET+x} ]; then + FLAGS="$FLAGS --target=$ONYX_TARGET" +fi + echo "Compiling onyx_runtime.$suffix" $ONYX_CC -shared -fpic -w -O2 \ -o onyx_runtime.$suffix \ + $FLAGS \ -I ../shared/include -I ../compiler/include \ ./onyx_runtime.c \ - $FLAGS \ -lpthread