This is an archive of the discontinued LLVM Phabricator instance.

gn build: Add a `use_asan` build arg that can be used to build asanified clangs and llds
Needs ReviewPublic

Authored by thakis on Apr 15 2019, 10:04 AM.

Details

Reviewers
pcc
Summary

As-is, this also builds an asanified hwasan runtime. Not sure if that's good or not.

Diff Detail

Event Timeline

thakis created this revision.Apr 15 2019, 10:04 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 15 2019, 10:04 AM
pcc added a comment.Apr 15 2019, 10:19 AM

We shouldn't be compiling any of the sanitizer runtimes with sanitizers, that's pretty much guaranteed not to work.

We could do something like this to disable asan in non-default toolchains:
https://cs.chromium.org/chromium/src/build/config/sanitizers/sanitizers.gni?l=123