HomePhabricator

[libcxx] Link against android_support when needed

Authored by smeenai on Jan 27 2020, 5:29 PM.

Description

[libcxx] Link against android_support when needed

libc++ on Android needs to be linked against libandroid_support on API
levels less than 21 to provide needed functions that aren't in the libc
on those platforms (e.g. posix_memalign for libcxxabi). libc++ from the
NDK is a linker script that pulls in libandroid_support, but for
building libc++ itself, we need to explicitly add libandroid_support as
a dependency. Moreover, libc++ headers reference the functions provided
by libandroid_support, so it needs to be added as a public dependency.

Differential Revision: https://reviews.llvm.org/D73516

Details

Committed
smeenaiJan 28 2020, 2:36 PM
Differential Revision
D73516: [libcxx] Link against android_support when needed
Parents
rGd8f6950828df: [asan] Fix test compilation on Android API <= 17
Branches
Unknown
Tags
Unknown