-
Notifications
You must be signed in to change notification settings - Fork 552
Description
Hello,
We're building a small rust crate for ios, for the aarch64-apple-ios-sim and x86_64-apple-ios targets, on a macos arm host.
Because this is for iOS, we create a "fat" static library using macOS's lipo tool, like so:
lipo -create -output myrustlib.a target/aarch64-apple-ios-sim/debug/myrustlib.a target/x86_64-apple-ios/debug/myrustlib.a
This works with rustls v0.21.10 and cc 1.0.88, but started failing with cc 1.0.89 with the following error:
fatal error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/lipo: archive member target/x86_64-apple-ios/debug/myrustlib.a(fad98b632b8ce3cc-curve25519.o) cputype (16777228) and cpusubtype (0) does not match previous archive members cputype (16777223) and cpusubtype (3) (all members must match)
Looking at the last few cc commits, it's not clear to me what could have caused this change in behavior, but the problem evidently disappears when we pin cc = "=1.0.88" in Cargo.toml.
Unfortunately I don't have a minimal repro I can submit at the moment, but submitting for your consideration, and in case someone else runs into the same issue.