Skip to content

[Sanitizer] Add new flag -sanitize-stable-abi flag to link against the #1495

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

Closed
wants to merge 1 commit into from

Conversation

usama54321
Copy link
Contributor

new sanitiers stable ABI in compiler-rt.

Compiler-rt recently introduced a stable ABI for sanitizers. This patch adds a flag to pass this flag to swift-frontend during compilation and clang at link time to link against the new stable ABI.

rdar://118997873

new sanitiers stable ABI in compiler-rt.

Compiler-rt recently introduced a stable ABI for sanitizers. This patch
adds a flag to pass this flag to swift-frontend during compilation and
clang at link time to link against the new stable ABI.

rdar://118997873
@usama54321
Copy link
Contributor Author

@swift-ci test

Copy link
Contributor

@wrotki wrotki left a comment

Choose a reason for hiding this comment

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

LGTM

@@ -216,6 +216,7 @@ extension Driver {
try commandLine.appendLast(.sanitizeEQ, from: &parsedOptions)
try commandLine.appendLast(.sanitizeRecoverEQ, from: &parsedOptions)
try commandLine.appendLast(.sanitizeAddressUseOdrIndicator, from: &parsedOptions)
try commandLine.appendLast(.sanitizeStableAbiEQ, from: &parsedOptions)
Copy link
Contributor

Choose a reason for hiding this comment

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

Could we please guard this with isFrontendArgSupported(.sanitizeStableAbiEQ)?

@wrotki
Copy link
Contributor

wrotki commented Dec 15, 2023

Usama won't be able to add this isFrontendArgSupported(.sanitizeStableAbiEQ) check, so I cloned this PR to #1509 and applied the change there

@artemcm artemcm closed this Dec 16, 2023
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