fixed: `darwin-wasmer-arm64` runtime target
authorBrendan Hansen <brendan.f.hansen@gmail.com>
Wed, 22 Nov 2023 20:29:38 +0000 (14:29 -0600)
committerBrendan Hansen <brendan.f.hansen@gmail.com>
Wed, 22 Nov 2023 20:29:38 +0000 (14:29 -0600)
runtime/build.sh

index a4ba6aeb8051f1ea1d4663ffd71b03379726629c..8b0a2fea27dd93fa3deefdeecc5a7e73ace1b7f0 100755 (executable)
@@ -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