enable rust backend in debug builds

This commit is contained in:
jess 2026-04-04 22:05:53 -07:00
parent 63457fd9da
commit fd10b7e8ae
1 changed files with 5 additions and 9 deletions

View File

@ -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"