From: Brendan Hansen Date: Mon, 5 Sep 2022 16:47:54 +0000 (-0500) Subject: fixed build order for fresh builds X-Git-Url: https://git.brendanfh.com/?a=commitdiff_plain;h=ba24e66a3d5b1b03fb2471f2fc34fbd6d8d47a88;p=onyx.git fixed build order for fresh builds --- diff --git a/build.sh b/build.sh index 9a8a169f..8cc45b8d 100755 --- a/build.sh +++ b/build.sh @@ -14,14 +14,6 @@ sudo cp ./bin/onyx-pkg "$BIN_DIR/onyx-pkg" sudo mkdir -p "$CORE_DIR/tools" sudo cp ./scripts/onyx-pkg.onyx "$CORE_DIR/tools" -cd compiler -./build.sh $1 -cd .. - -cd runtime -./build.sh $1 -cd .. - if [ "$RUNTIME_LIBRARY" = "ovmwasm" ]; then cd interpreter ./build.sh $1 @@ -40,6 +32,14 @@ if [ ! -f "$CORE_DIR/lib/lib$RUNTIME_LIBRARY.so" ] || true; then sudo cp "$WASMER_INCLUDE_DIR/wasm.h" "$CORE_DIR/include/wasm.h" fi +cd compiler +./build.sh $1 +cd .. + +cd runtime +./build.sh $1 +cd .. + # Otherwise the prompt ends on the same line