From e96a87b1bdd0dc1ee8e44696dc8740d4d27de2f5 Mon Sep 17 00:00:00 2001 From: Brendan Hansen Date: Wed, 15 Nov 2023 21:59:15 -0600 Subject: [PATCH] bugfix: more build bugfixing --- compiler/build.sh | 3 ++- interpreter/build.sh | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/compiler/build.sh b/compiler/build.sh index d10bc371..66f412c8 100755 --- a/compiler/build.sh +++ b/compiler/build.sh @@ -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 diff --git a/interpreter/build.sh b/interpreter/build.sh index 1552b415..e72417d1 100755 --- a/interpreter/build.sh +++ b/interpreter/build.sh @@ -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 -- 2.25.1