chore: convenient iOS build target for an optimized output
This commit is contained in:
4
Makefile
4
Makefile
@@ -6,6 +6,10 @@ ios-dev:
|
||||
cargo lipo -p leaf-ffi
|
||||
cbindgen --config leaf-ffi/cbindgen.toml leaf-ffi/src/lib.rs > target/universal/debug/leaf.h
|
||||
|
||||
ios-opt:
|
||||
RUSTFLAGS="-Z strip=symbols" cargo lipo --release --targets aarch64-apple-ios --manifest-path leaf-ffi/Cargo.toml --no-default-features --features "default-openssl"
|
||||
cbindgen --config leaf-ffi/cbindgen.toml leaf-ffi/src/lib.rs > target/universal/release/leaf.h
|
||||
|
||||
lib:
|
||||
cargo build -p leaf-ffi --release
|
||||
cbindgen --config leaf-ffi/cbindgen.toml leaf-ffi/src/lib.rs > target/release/leaf.h
|
||||
|
||||
Reference in New Issue
Block a user