Skip to content

Conversation

ahoppen
Copy link
Member

@ahoppen ahoppen commented May 21, 2021

When compiling a module, we can’t have two files with the same filename because the filename is used to disambiguate private declarations during CodeGen. For SourceKit this is not an issue and we shouldn’t stop providing semantic functionality because of it.

This is a more targeted version of #37512 (merged into main), ignoring just the same-filename-used-twice-error, whereas #37512 ignores all errors generated by the driver.

Fixes rdar://77618144

ahoppen added 2 commits May 21, 2021 15:09
…sed twice and `-experimental-allow-module-with-compiler-errors` is passed
When compiling a module, we can’t have two files with the same filename because the filename is used to disambiguate private declarations during CodeGen. For SourceKit this is not an issue and we shouldn’t stop providing semantic functionality because of it.

Fixes rdar://77618144
@ahoppen ahoppen added the r5.5 label May 21, 2021
@ahoppen ahoppen requested a review from akyrtzi May 21, 2021 13:22
@ahoppen
Copy link
Member Author

ahoppen commented May 21, 2021

@swift-ci Please test

@ahoppen ahoppen merged commit 7f09acc into swiftlang:release/5.5 May 22, 2021
@ahoppen ahoppen deleted the pr-5.5/allow-same-filename-for-sourcekit branch May 22, 2021 05:57
@AnthonyLatsis AnthonyLatsis added 🍒 release cherry pick Flag: Release branch cherry picks swift 5.5 labels Jan 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🍒 release cherry pick Flag: Release branch cherry picks swift 5.5
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants