Skip to content

Better diagnostic when building with unsupported language subset #75077

Open
@rauhul

Description

@rauhul

Description

When building for a target like visionOS or avr which may only have support for a single language subset (like "full swift" or "embedded swift" respectively) we should emit better diagnostics.

For example if you try to build with an unsupported subset today you will see an error like "Failed to load Swift.swiftmodule". Instead we should look for other variants for the same triple and instead a emit an error like: "Failed to find Swift.swiftmodule for full Swift, but found Swift.swiftmodule for Embedded Swift; did you mean to pass '-enable-experimental-feature Embedded'"

Metadata

Metadata

Assignees

Labels

bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.embeddedEmbedded Swift

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions