This is an archive of the discontinued LLVM Phabricator instance.

[gn build] Add support for check-asan
ClosedPublic

Authored by aeubanks on Jan 26 2022, 6:52 PM.

Details

Summary

With these changes, check-asan passes on Linux and Windows.

There are a couple libraries we need to add support for, asan_static, asan_preinit, and the shared library version of asan proper.
Since we need to build the asan proper sources twice, once with -DASAN_DYNAMIC and once without, those sources are no longer in a source_set.
Much of the check-asan target is taken from the existing check-hwasan target.

Diff Detail

Event Timeline

aeubanks created this revision.Jan 26 2022, 6:52 PM
aeubanks published this revision for review.Jan 27 2022, 10:00 AM
aeubanks edited the summary of this revision. (Show Details)
aeubanks added a reviewer: thakis.
Herald added a project: Restricted Project. · View Herald TranscriptJan 27 2022, 10:00 AM
thakis accepted this revision.Jan 27 2022, 3:31 PM

Nice!

This revision is now accepted and ready to land.Jan 27 2022, 3:31 PM
This revision was landed with ongoing or failed builds.Jan 27 2022, 4:10 PM
This revision was automatically updated to reflect the committed changes.