diff options
author | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2020-01-24 21:21:24 +0000 |
---|---|---|
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2020-01-24 21:21:24 +0000 |
commit | 7651bf475837206792689e95e0027f869c1732d6 (patch) | |
tree | c1a3a908dbde9938c040aab61c82bfc8487ab8a3 | |
parent | 8a7b747c084e9b198232d691849afd6be2d44903 (diff) | |
parent | 223d393ce54a9e20b71e26bdee89fe1365685ee9 (diff) | |
download | ndk-7651bf475837206792689e95e0027f869c1732d6.tar.gz |
Merge "Fix include order of libandroid_support." am: 0e4bd14fba am: 223d393ce5
Change-Id: I455b02bd526fb3fa8f9abbd2f3ba3644dd87ab6c
-rw-r--r-- | stl.bp | 21 |
1 files changed, 18 insertions, 3 deletions
@@ -5,9 +5,10 @@ libcxx_includes = [ ndk_prebuilt_static_stl { name: "ndk_libandroid_support", - export_include_dirs: [ - "current/sources/android/support/include", - ], + // libandroid_support headers are exported by libc++ rather than by + // libandroid_support itself because it's the only way we can enforce the + // correct ordering of the includes (libc++ first, libandroid_support + // second). arch: { arm64: { enabled: false, @@ -36,9 +37,23 @@ ndk_prebuilt_static_stl { ndk_prebuilt_static_stl { name: "ndk_libc++_static", export_include_dirs: libcxx_includes, + multilib: { + lib32: { + export_include_dirs: [ + "current/sources/android/support/include", + ], + }, + } } ndk_prebuilt_shared_stl { name: "ndk_libc++_shared", export_include_dirs: libcxx_includes, + multilib: { + lib32: { + export_include_dirs: [ + "current/sources/android/support/include", + ], + }, + } } |