-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
constructor doesn't work with arm64e-apple-ios but works on arm64e-apple-darwin #139218
Copy link
Copy link
Open
Labels
A-LLVMArea: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.A-linkageArea: linking into static, shared libraries and binariesArea: linking into static, shared libraries and binariesC-external-bugCategory: issue that is caused by bugs in software beyond our controlCategory: issue that is caused by bugs in software beyond our controlO-AArch64Armv8-A or later processors in AArch64 modeArmv8-A or later processors in AArch64 modeO-appleOperating system: Apple / Darwin (macOS, iOS, tvOS, visionOS, watchOS)Operating system: Apple / Darwin (macOS, iOS, tvOS, visionOS, watchOS)O-iosOperating system: iOSOperating system: iOS
Metadata
Metadata
Assignees
Labels
A-LLVMArea: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.A-linkageArea: linking into static, shared libraries and binariesArea: linking into static, shared libraries and binariesC-external-bugCategory: issue that is caused by bugs in software beyond our controlCategory: issue that is caused by bugs in software beyond our controlO-AArch64Armv8-A or later processors in AArch64 modeArmv8-A or later processors in AArch64 modeO-appleOperating system: Apple / Darwin (macOS, iOS, tvOS, visionOS, watchOS)Operating system: Apple / Darwin (macOS, iOS, tvOS, visionOS, watchOS)O-iosOperating system: iOSOperating system: iOS
Type
Fields
Give feedbackNo fields configured for issues without a type.
I am compiling a dylib targeting arm64e for macos and ios. I am using the ctor crate (https://crates.io/crates/ctor) but also ruled that out by just using the expanded code (cargo expand).
my .cargo/config.toml (using xcode14 clang to allow linking arm64e):
my lib.rs:
for macos i use:
cargo +nightly build -Z build-std --target arm64e-apple-darwinfor ios i use:
SDKROOT=~/Documents/ios_sdks/iPhoneOS16.0.sdk cargo +nightly build -Z build-std --target arm64e-apple-ioswhen compiling this code for ios i get the error with a clean build:
This error seems like something is confused and wants to build macos?
building macos then ios:
This error just seems like the symbol for the constructor is getting removed
Meta
rustc --version --verbose: