This is an archive of the discontinued LLVM Phabricator instance.

Runtime detection of android_set_abort_message.
ClosedPublic

Authored by eugenis on Sep 11 2017, 3:30 PM.

Details

Summary

Use runtime detection (with a weak-undef symbol) of
android_set_abort_message availability. Android NDK provides a single
version of the ASan runtime library to be used for any target API
level, which makes compile-time feature detection impossible (the
library itself is built at API level 9).

Diff Detail

Repository
rL LLVM

Event Timeline

eugenis created this revision.Sep 11 2017, 3:30 PM
srhines accepted this revision.Sep 11 2017, 3:36 PM

I think we actually build at level 14 now (or at least that is the plan), but the fix is needed in any case. Thanks for fixing this up.

This revision is now accepted and ready to land.Sep 11 2017, 3:36 PM
This revision was automatically updated to reflect the committed changes.