Commit a3fd6ca7 authored by Yi Kong's avatar Yi Kong Committed by Nick Desaulniers
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.

aosp/571945

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