From ba24e66a3d5b1b03fb2471f2fc34fbd6d8d47a88 Mon Sep 17 00:00:00 2001 From: Brendan Hansen Date: Mon, 5 Sep 2022 11:47:54 -0500 Subject: [PATCH] fixed build order for fresh builds --- build.sh | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) 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 -- 2.25.1