bugfix: more build bugfixing
authorBrendan Hansen <brendan.f.hansen@gmail.com>
Thu, 16 Nov 2023 03:59:15 +0000 (21:59 -0600)
committerBrendan Hansen <brendan.f.hansen@gmail.com>
Thu, 16 Nov 2023 03:59:15 +0000 (21:59 -0600)
compiler/build.sh
interpreter/build.sh

index d10bc3718e042ecce9ca44009e5a24d570c16d06..66f412c875d5db2587d3137916ad7f2a6f61b721 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/sh
 
-C_FILES="onyx astnodes builtins checker clone doc entities errors lex parser symres types utils wasm_emit wasm_runtime "
+C_FILES="onyx astnodes builtins checker clone doc entities errors lex parser symres types utils wasm_emit "
 LIBS="-L$ONYX_LIBRARY_DIR -lpthread -ldl -lm"
 INCLUDES="-I./include -I../shared/include -I../shared/include/dyncall"
 
@@ -14,6 +14,7 @@ fi
 
 if [ ! -z ${ONYX_RUNTIME_LIBRARY+x} ]; then
     FLAGS="$FLAGS -DENABLE_RUN_WITH_WASMER"
+    C_FILES="$C_FILES wasm_runtime "
     LIBS="$LIBS -l$ONYX_RUNTIME_LIBRARY"
 fi
 
index 1552b41508f537821987ed8912327c79d8076e70..e72417d121b87831409307f149d7996eba48e9e9 100755 (executable)
@@ -10,6 +10,7 @@ INCLUDES="-I../shared/include -Iinclude"
 
 mkdir -p "build_tmp"
 
+echo "Compiling ovmwasm to $TARGET"
 for c_file in $C_FILES; do
     $ONYX_CC $FLAGS $INCLUDES -fPIC -o $(mktemp -p build_tmp -t XXXXXXX.o) -c $c_file $LIBS
 done