add build error checking
This commit is contained in:
parent
19a231d6d3
commit
fe3a5d60d1
10
build.sh
10
build.sh
|
|
@ -13,7 +13,17 @@ SDK=$(xcrun --show-sdk-path)
|
|||
RUST_LIB="$ROOT/core/target/release"
|
||||
echo "Building Rust core (release)..."
|
||||
cd "$ROOT/core" && cargo build --release
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "ERROR: Rust build failed"
|
||||
exit 1
|
||||
fi
|
||||
cd "$ROOT"
|
||||
|
||||
if [ ! -f "$RUST_LIB/libswiftly_core.a" ]; then
|
||||
echo "ERROR: libswiftly_core.a not found at $RUST_LIB"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
RUST_FLAGS="-import-objc-header $ROOT/core/include/swiftly.h -L $RUST_LIB -lswiftly_core"
|
||||
|
||||
# --- App icon from SVG ---
|
||||
|
|
|
|||
Loading…
Reference in New Issue