Skip to content

Conversation

@rintaro
Copy link
Member

@rintaro rintaro commented Oct 15, 2025

When building the swift compler with "Debug" configuration, modules written in Swift must be linked to swiftOnoneSupport. Explicitly link it as some linker doesn't auto-link it.

rdar://162631685

NOTE: This still won't work in non-Darwin platform if the stdlib is also being compiled "Debug" (--debug-swift-stdlib) because when building the compiler, it's linked against the stdlib (incl. swiftOnoneSupport) in the builder which is probably optimized. But in runtime, it uses the just-built stdlib. Since there're ABI mismatch between optimized/unoptimized swiftOnoneSupport, some symbols would be missing.

When building the swift compler with "Debug" configuration, modules
written in Swift must be linked to swiftOnoneSupport. Explicitly link it
as some linker doesn't auto-link it.

rdar://162631685
@rintaro
Copy link
Member Author

rintaro commented Oct 15, 2025

@swift-ci Please smoke test

@rintaro
Copy link
Member Author

rintaro commented Oct 15, 2025

@swift-ci Please smoke test Windows

@rintaro rintaro merged commit 1ae8ef0 into swiftlang:main Oct 16, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant