diff options
author | Stephen Hines <srhines@google.com> | 2016-07-07 03:38:19 -0700 |
---|---|---|
committer | Stephen Hines <srhines@google.com> | 2016-07-08 20:07:42 -0700 |
commit | a4c7828f2d98120c885ac62d0cea5b2ef08c685f (patch) | |
tree | 426f2508ccc26aa25984407bd5e32fec77f4135b /lib/sanitizer_common | |
parent | bce209f5b522db932854bcd423605ad1c79dad4c (diff) | |
download | compiler-rt-a4c7828f2d98120c885ac62d0cea5b2ef08c685f.tar.gz |
Switch compiler_rt libraries to be built with NDK API 19/21.
Test: Built entire device and ran RS CTS tests (to exercise dynamic
compiler_rt behaviors).
Previously, the static libraries here were being built directly against
the platform headers/libraries. This causes problems when one wants to
link the latest libcompiler_rt.a from another NDK app, since it might
introduce an unexpected dependency on unexposed APIs. By building with
the NDK level 19 headers, we can enable other targets to safely depend
on the various libcompiler_rt static libraries (such as the RenderScript
LLDB tests). The final object must use API level 21, or we have missing
definitions for some the FORTIFY APIs.
Change-Id: I04ab3cb96e8eec54c2c3b7f9f0ea7d906af1d82c
Diffstat (limited to 'lib/sanitizer_common')
-rw-r--r-- | lib/sanitizer_common/Android.bp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/sanitizer_common/Android.bp b/lib/sanitizer_common/Android.bp index fd6b18956..2de4ff11d 100644 --- a/lib/sanitizer_common/Android.bp +++ b/lib/sanitizer_common/Android.bp @@ -21,6 +21,8 @@ cc_library_static { name: "libsan", host_supported: true, + clang: true, + sdk_version: "19", include_dirs: ["external/compiler-rt/lib"], cppflags: [ |