From fd10b7e8ae9183e3c8a11afd95f654c7e76e222a Mon Sep 17 00:00:00 2001 From: jess Date: Sat, 4 Apr 2026 22:05:53 -0700 Subject: [PATCH] enable rust backend in debug builds --- debug.sh | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/debug.sh b/debug.sh index e8dc375..5f0d336 100755 --- a/debug.sh +++ b/debug.sh @@ -11,15 +11,11 @@ LOGFILE="$HOME/swiftly/debug.log" SDK=$(xcrun --show-sdk-path) -# --- Rust core (re-enable when backend is ready) --- -# RUST_LIB="$ROOT/core/target/debug" -# if [ -d "$ROOT/core" ]; then -# echo "Building Rust core (debug)..." -# cd "$ROOT/core" && cargo build -# cd "$ROOT" -# RUST_FLAGS="-import-objc-header $ROOT/core/include/swiftly.h -L $RUST_LIB -lswiftly_core" -# fi -RUST_FLAGS="" +RUST_LIB="$ROOT/core/target/debug" +echo "Building Rust core (debug)..." +cd "$ROOT/core" && cargo build +cd "$ROOT" +RUST_FLAGS="-import-objc-header $ROOT/core/include/swiftly.h -L $RUST_LIB -lswiftly_core" # --- Bundle structure --- mkdir -p "$MACOS" "$RESOURCES"