Skip to content

Commit

Permalink
Pass --no-sanitize-env to cargo-lipo
Browse files Browse the repository at this point in the history
Otherwise it clears IPHONEOS_DEPLOYMENT_TARGET variable
and core gets built for wrong iOS version instead of 12.0.
  • Loading branch information
link2xt committed Apr 4, 2024
1 parent 98a37b9 commit 1f8cb9c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/build-core.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,10 @@ rustup target add aarch64-apple-ios x86_64-apple-ios --toolchain `cat ../rust-to

# --xcode-integ determines --release and --targets from Xcode's env vars.
# Depending your setup, specify the rustup toolchain explicitly.
#
# --no-sanitize-env prevents removal of IPHONEOS_DEPLOYMENT_TARGET variable.
RUSTFLAGS="-C lto=on -C embed-bitcode=yes" \
cargo +`cat ../rust-toolchain` lipo --xcode-integ --manifest-path "$DIR/deltachat-core-rust/deltachat-ffi/Cargo.toml" --features jsonrpc
cargo +`cat ../rust-toolchain` lipo --xcode-integ --no-sanitize-env --manifest-path "$DIR/deltachat-core-rust/deltachat-ffi/Cargo.toml" --features jsonrpc

# cargo-lipo drops result in different folder, depending on the config.
if [[ $CONFIGURATION = "Debug" ]]; then
Expand Down

0 comments on commit 1f8cb9c

Please sign in to comment.