-
-
Notifications
You must be signed in to change notification settings - Fork 15k
Static EII defaults are currently unsupported on macOS #157649
Copy link
Copy link
Open
Labels
A-linkageArea: linking into static, shared libraries and binariesArea: linking into static, shared libraries and binariesF-extern_item_impls`#![feature(extern_item_impls)]``#![feature(extern_item_impls)]`O-macosOperating system: macOSOperating system: macOST-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.needs-triageThis issue may need triage. Remove it if it has been sufficiently triaged.This issue may need triage. Remove it if it has been sufficiently triaged.
Metadata
Metadata
Assignees
Labels
A-linkageArea: linking into static, shared libraries and binariesArea: linking into static, shared libraries and binariesF-extern_item_impls`#![feature(extern_item_impls)]``#![feature(extern_item_impls)]`O-macosOperating system: macOSOperating system: macOST-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.needs-triageThis issue may need triage. Remove it if it has been sufficiently triaged.This issue may need triage. Remove it if it has been sufficiently triaged.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Static EII defaults currently fail to link on macOS targets.
Example:
This appears to be caused by LLVM's Mach-O alias emission. See #156583 (comment) for details and links to the related LLVM issue / PR.
Until the LLVM fix reaches rustc, rustc should reject static EII defaults on macOS targets with a diagnostic that points here.
This issue tracks that temporary restriction and its eventual removal.
Related