[libcxx-commits] [PATCH] D73516: [libcxx] Link against android_support when needed
Shoaib Meenai via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Tue Jan 28 14:44:07 PST 2020
This revision was automatically updated to reflect the committed changes.
Closed by commit rG076da521f31a: [libcxx] Link against android_support when needed (authored by smeenai).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D73516/new/
https://reviews.llvm.org/D73516
Files:
libcxx/CMakeLists.txt
libcxxabi/src/CMakeLists.txt
Index: libcxxabi/src/CMakeLists.txt
===================================================================
--- libcxxabi/src/CMakeLists.txt
+++ libcxxabi/src/CMakeLists.txt
@@ -95,6 +95,9 @@
# MINGW_LIBRARIES is defined in config-ix.cmake
list(APPEND LIBCXXABI_LIBRARIES ${MINGW_LIBRARIES})
endif()
+if (ANDROID AND ANDROID_PLATFORM_LEVEL LESS 21)
+ list(APPEND LIBCXXABI_LIBRARIES android_support)
+endif()
if (NOT LIBCXXABI_USE_COMPILER_RT)
add_library_flags_if(LIBCXXABI_HAS_GCC_LIB gcc)
Index: libcxx/CMakeLists.txt
===================================================================
--- libcxx/CMakeLists.txt
+++ libcxx/CMakeLists.txt
@@ -779,6 +779,10 @@
# (e.g. `printfw`/`scanfw`)
target_link_libraries(${target} PRIVATE iso_stdio_wide_specifiers)
endif()
+
+ if (ANDROID AND ANDROID_PLATFORM_LEVEL LESS 21)
+ target_link_libraries(${target} PUBLIC android_support)
+ endif()
endfunction()
# Windows-related flags =======================================================
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D73516.241004.patch
Type: text/x-patch
Size: 1011 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20200128/efc59977/attachment.bin>
More information about the libcxx-commits
mailing list