Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Per-target rustflags for cross-compilation.
#
# iOS staticlib build (aarch64-apple-ios):
# -C panic=abort — propagate abort strategy to all crates so they match the
# [profile.release] panic = "abort" setting in Cargo.toml. Without this,
# leaf-ffi (which has its own staticlib crate-type) links panic_unwind and
# conflicts with our abort-strategy staticlib.
# IPHONEOS_DEPLOYMENT_TARGET=16.0 is required so the linker doesn't default
# to iOS 10 and produce version-mismatch errors with leaf's netstack-lwip C
# objects (which are compiled against the current Xcode SDK).
[target.aarch64-apple-ios]
rustflags = []

[target.aarch64-apple-ios.env]
IPHONEOS_DEPLOYMENT_TARGET = "16.0"

[target.aarch64-apple-ios-sim]
rustflags = []

[target.aarch64-apple-ios-sim.env]
IPHONEOS_DEPLOYMENT_TARGET = "16.0"

[target.x86_64-apple-ios]
rustflags = []

[target.x86_64-apple-ios.env]
IPHONEOS_DEPLOYMENT_TARGET = "16.0"
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,8 @@
/config.json
.DS_Store
/SCR-*.png

# iOS — generated by xcodegen / Xcode, and local signing (never commit team ID)
/ios/MhrvVPN.xcodeproj/
/ios/build/
/ios/Local.xcconfig
Loading
Loading