Skip to content

[CMake] Workaround sanitizer flag bug in swift driver #64993

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

bulbazord
Copy link
Contributor

Some versions of the swift driver have a bug where passing -sanitize= does not emit the correct -fsanitize= flag for the clang link step. Although this is being fixed, we must be able to correctly build with older versions of the swift driver for some period of time. We workaround that issue by explicitly passing the correct -fsanitize= argument ourselves.

This works around rdar://107733898

Some versions of the swift driver have a bug where passing `-sanitize=`
does not emit the correct `-fsanitize=` flag for the clang link step.
Although this is being fixed, we must be able to correctly build with older
versions of the swift driver for some period of time. We workaround that
issue by explicitly passing the correct `-fsanitize=` argument
ourselves.

This works around rdar://107733898
@bulbazord bulbazord requested review from etcwilde and artemcm April 7, 2023 00:02
@bulbazord
Copy link
Contributor Author

@swift-ci please test

Copy link
Member

@etcwilde etcwilde left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, that should work around swiftlang/swift-driver#1325

Copy link
Contributor

@artemcm artemcm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😬

@bulbazord bulbazord merged commit 4288ba9 into swiftlang:main Apr 7, 2023
@bulbazord bulbazord deleted the workaround_driver_sanitizer_bug branch April 7, 2023 17:35
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.

3 participants