Skip to content

compiler ICE when unable to find iOS SDK #32752

Closed
@cardoe

Description

@cardoe

The compiler has an internal compiler error when it is unable to find the iOS SDK. This should probably be caught with a little friendlier error message.

$ rustc --emit llvm-ir --target x86_64-apple-ios -o x86_64-apple-ios.ll test.rs
error: internal compiler error: unexpected panic
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: https://github.com/rustlang/rust/blob/master/CONTRIBUTING.md#bug-reports
note: run with `RUST_BACKTRACE=1` for a backtrace
thread 'rustc' panicked at 'failed to get iphonesimulator SDK path: No such file or directory (os error 2)', ../src/librustc_back/target/apple_ios_base.rs:59

Metadata

Metadata

Assignees

No one assigned

    Labels

    I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions