This is an archive of the discontinued LLVM Phabricator instance.

[scudo] Use -fsanitize=scudo rather than --whole-archive in tests
ClosedPublic

Authored by cryptoad on Jan 18 2018, 8:25 AM.

Details

Summary

Tests were being run by whole-linking the static library with our test binaries.
But since -fsanitize=scudo landed with rL317337, we might as well change how
the tests are compiled to use it.

The only difference will be on Android, where the clang flag links in the
dynamic library instead, but the bots are already pushing
libclang_rt.*-android.so to the device there is no additional change needed.

Tested locally, including with a standalone build, and an Android one on a O
device, and it all passes.

Diff Detail

Event Timeline

cryptoad created this revision.Jan 18 2018, 8:25 AM
Herald added a subscriber: Restricted Project. · View Herald TranscriptJan 18 2018, 8:25 AM
cryptoad edited the summary of this revision. (Show Details)Jan 18 2018, 8:52 AM
alekseyshl accepted this revision.Jan 18 2018, 11:28 AM
This revision is now accepted and ready to land.Jan 18 2018, 11:28 AM
This revision was automatically updated to reflect the committed changes.