Skip to content

Commit

Permalink
Use condition for setting up or building
Browse files Browse the repository at this point in the history
  • Loading branch information
andy5995 committed Dec 11, 2024
1 parent 40fc83b commit a3d1125
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions scripts/build-default.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit a3d1125

Please sign in to comment.