This is an archive of the discontinued LLVM Phabricator instance.

[Sanitizers] fix -fno-sanitize-link-runtime for darwin
ClosedPublic

Authored by usama54321 on Jan 23 2023, 4:55 PM.

Details

Summary

The -fno-sanitize-link-runtime flag currently does not work as expected on Darwin. This patch fixes that.

rdar://99200922

Diff Detail

Event Timeline

usama54321 created this revision.Jan 23 2023, 4:55 PM
Herald added a project: Restricted Project. · View Herald TranscriptJan 23 2023, 4:55 PM
usama54321 requested review of this revision.Jan 23 2023, 4:55 PM
Herald added a project: Restricted Project. · View Herald TranscriptJan 23 2023, 4:55 PM
usama54321 edited the summary of this revision. (Show Details)Jan 23 2023, 4:56 PM
yln accepted this revision.Jan 26 2023, 3:29 PM
This revision is now accepted and ready to land.Jan 26 2023, 3:29 PM
yln added a comment.Jan 26 2023, 3:32 PM

Looks harmless enough, even though I am not sure why we have a completely separate code path on Darwin. The other toolchain driver seem to have shared code for this in clang/lib/Driver/ToolChains/CommonArgs.cpp.

thetruestblue accepted this revision.EditedJan 26 2023, 3:39 PM

LGTM, but also confused regarding @yln's point.

rsundahl accepted this revision.Jan 26 2023, 3:41 PM

LGTM as well.

This revision was landed with ongoing or failed builds.Feb 1 2023, 11:08 AM
This revision was automatically updated to reflect the committed changes.