Skip to content

[6.0][Darwin][IR] Don't error on target_variant mismatch when linking IR #8777

New issue

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

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

Already on GitHub? Sign in to your account

Merged

Conversation

cachemeifyoucan
Copy link

Explanation: Make target-variant mismatch a warning when using LTO, matching linker behavior without LTO
Scope: Prevent hard error when target variant mismatches between object files
Issue: rdar://125874272
Original PR: llvm#92297
Reviewer: @cyndyishida
Risk: Low. Turn error into warning.
Test: Unit Test

…lvm#92297)

Change the ModuleFlag type for target_variant to warning to avoid error
out when the value is different. This matches the linker behavior when
linking object files.

rdar://125874272
(cherry picked from commit 7c19058)
@cachemeifyoucan cachemeifyoucan requested a review from a team May 21, 2024 16:32
@cachemeifyoucan
Copy link
Author

@swift-ci please test

@cachemeifyoucan
Copy link
Author

@swift-ci please test windows platform

@cachemeifyoucan
Copy link
Author

ping for a merge.

@nkcsgexi nkcsgexi merged commit 3fc9805 into swiftlang:swift/release/6.0 May 24, 2024
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.

2 participants