From a3d1125d0d38cadd217de7dfc210d5024f024a3b Mon Sep 17 00:00:00 2001 From: andy5995 Date: Wed, 11 Dec 2024 04:32:50 -0600 Subject: [PATCH] Use condition for setting up or building --- scripts/build-default.sh | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/scripts/build-default.sh b/scripts/build-default.sh index afb0c7dd..f7e97dd5 100755 --- a/scripts/build-default.sh +++ b/scripts/build-default.sh @@ -14,12 +14,16 @@ set -v bun install bun run codegen -if [ "$(uname)" != "Darwin" ]; then - bun run meson-setup.clang-release +if [ -d "build" ]; then + bun run meson-build else - meson setup -Dforce_x11_backend=true --reconfigure build --buildtype=release --native-file toolchains/flatpak.ini - # Unclear fix to be investigated - rm subprojects/libtcc/VERSION + if [ "$(uname)" != "Darwin" ]; then + bun run meson-setup.clang-release + else + meson setup -Dforce_x11_backend=true --reconfigure build --buildtype=release --native-file toolchains/flatpak.ini + # Unclear fix to be investigated + rm subprojects/libtcc/VERSION + fi fi meson compile -C build vs:executable