Skip to content

Conversation

qiongsiwu
Copy link

…n modulemaps (llvm#148959)

This PR teaches the modulemap parsing logic to report warnings that default to errors if the parsing logic sees duplicating link declarations in the same module. Specifically, duplicating link declarations means multiple link declarations with the same string-literal in the same module. No errors are reported if a same link declaration exist in a submodule and its enclosing module.

The warning can be disabled with -Wno-module-link-redeclaration.

rdar://155880064
(cherry picked from commit 538e9e8)

…n `modulemap`s (llvm#148959)

This PR teaches the modulemap parsing logic to report warnings that
default to errors if the parsing logic sees duplicating link
declarations in the same module. Specifically, duplicating link
declarations means multiple link declarations with the same
string-literal in the same module. No errors are reported if a same link
declaration exist in a submodule and its enclosing module.

The warning can be disabled with `-Wno-module-link-redeclaration`.

rdar://155880064
(cherry picked from commit 538e9e8)
@qiongsiwu qiongsiwu merged commit b11f60b into swiftlang:stable/21.x Aug 27, 2025
AnthonyLatsis added a commit to swiftlang/swift that referenced this pull request Aug 29, 2025
… in implicit modulemaps

swiftlang/llvm-project#11265 broke Windows CI
for rebranch because our Windows modulemaps contain implicit submodules
with link declarations. This is a temporary workaround to unblock
investigation on any downstream issues.
AnthonyLatsis added a commit to swiftlang/swift that referenced this pull request Aug 29, 2025
… in implicit modulemaps

swiftlang/llvm-project#11265 broke Windows CI
for rebranch because our Windows modulemaps contain implicit submodules
with link declarations. This is a temporary workaround to unblock
investigation on any downstream issues.
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