Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

rdar://143411533 (Object files and module wrap output end up in the same location, stomping on each other) #31

Merged
merged 1 commit into from
Feb 3, 2025

Conversation

neonichu
Copy link
Collaborator

@neonichu neonichu commented Jan 31, 2025

On non macho-o platforms, swift-driver will create an additional module-wrap task if debugging is enabled which has an object file as output that will be named like the module and placed next to it. Since Swift Build will emit the Swift module next to the object files of a target, there can be a naming conflict, leading to us only ending up with the module-wrap content and the actual object file being stomped on.

This introduces a new PER_ARCH_MODULE_FILE_DIR build setting that's the same as PER_ARCH_OBJECT_FILE_DIR by default that allows us to customize the output directory.

…ame location, stomping on each other)

On non macho-o platforms, swift-driver will create an additional module-wrap task if debugging is enabled which has an object file as output that will be named like the module and placed next to it. Since Swift Build will emit the Swift module next to the object files of a target, there can be a naming conflict, leading to us only ending up with the module-wrap content and the actual object file being stomped on.

This introduces a new `PER_ARCH_MODULE_FILE_DIR` build setting that's the same as `PER_ARCH_OBJECT_FILE_DIR` by default that allows us to customize the output directory.
@neonichu neonichu force-pushed the bbuegling/143411533 branch from f030d6d to 1f0df01 Compare February 1, 2025 05:54
@neonichu neonichu merged commit 74bc85d into main Feb 3, 2025
@neonichu neonichu deleted the bbuegling/143411533 branch February 3, 2025 19:13
neonichu added a commit that referenced this pull request Feb 4, 2025
I broke this in #31 since that added a new setting that needs to be manually applied in this particular test.
@neonichu neonichu mentioned this pull request Feb 4, 2025
neonichu added a commit that referenced this pull request Feb 5, 2025
I broke these in #31 since that added a new setting that needs to be manually applied in this particular test.
neonichu added a commit that referenced this pull request Feb 6, 2025
I broke these in #31 since that added a new setting that needs to be manually applied in this particular test.
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants