Skip to content

Commit 0958d85

Browse files
committed
Go from xargo to using cargo with build-std
1 parent 34ab135 commit 0958d85

File tree

4 files changed

+10
-42
lines changed

4 files changed

+10
-42
lines changed

Cargo.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@ twox-hash = "1.5.0"
1919
foreign-types = "*"
2020
libc = "*"
2121

22+
[profile.dev]
23+
panic = 'unwind'
2224

2325
[profile.release]
24-
panic = "abort"
26+
panic = 'unwind'
2527

Xargo.toml

Lines changed: 0 additions & 4 deletions
This file was deleted.

make_fat.sh

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
#!/bin/bash
22

3+
# We need the SDK Root
4+
export SDKROOT=`xcrun --sdk macosx --show-sdk-path`
5+
36
# lipo together the different architectures into a universal 'fat' file
4-
xargo build --target x86_64-apple-ios-macabi --release
5-
xargo build --target aarch64-apple-ios --release
7+
# use `cargo build-std` to automatically build the std for non-tier1 platforms
8+
# such as catalyst
9+
cargo +nightly build -Z build-std --target x86_64-apple-ios-macabi --release
10+
cargo build --target aarch64-apple-ios --release
611
lipo -create -output target/libtest1.a target/{aarch64-apple-ios,x86_64-apple-ios-macabi}/release/libtest1.a

x86_64-apple-ios-macabi.json

Lines changed: 0 additions & 35 deletions
This file was deleted.

0 commit comments

Comments
 (0)