projects
/
onyx.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3b4be62
)
fixed: `darwin-wasmer-arm64` runtime target
author
Brendan Hansen
<brendan.f.hansen@gmail.com>
Wed, 22 Nov 2023 20:29:38 +0000
(14:29 -0600)
committer
Brendan Hansen
<brendan.f.hansen@gmail.com>
Wed, 22 Nov 2023 20:29:38 +0000
(14:29 -0600)
runtime/build.sh
patch
|
blob
|
history
diff --git
a/runtime/build.sh
b/runtime/build.sh
index a4ba6aeb8051f1ea1d4663ffd71b03379726629c..8b0a2fea27dd93fa3deefdeecc5a7e73ace1b7f0 100755
(executable)
--- 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