Commit 0d648894 authored by Yi Kong's avatar Yi Kong
Browse files

Add stubs and headers for nl_types APIs.

We don't have message catalog APIs on Android until O. For releases
prior to that, we build in stub APIs (as weak symbols so we use libc's
on new API levels). We add these here instead of in libandroid_support
because the driver (correctly) links libomp well after
libandroid_support, which means libandroid_support won't be searched
for resolving symbols in openmp.

Since NDK r16 removed nl_types.h, also bundle a stub header.

Test: Build LLVM with NDK r16
Bug: https://github.com/android-ndk/ndk/issues/9
Change-Id: I489b3e93ffe83759c463aeed0c02e6f3232f8a66
parent f91b92fd
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment