Skip to content

Commit d7d730d

Browse files
committed
[android] add a module map for Android NDK
This module map covers the Bionic C standard library and other Posix headers used in the Android NDK
1 parent a79ee61 commit d7d730d

File tree

2 files changed

+426
-1
lines changed

2 files changed

+426
-1
lines changed

stdlib/public/Platform/CMakeLists.txt

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,14 @@ foreach(sdk ${SWIFT_SDKS})
286286
DESTINATION "lib/swift/${arch_subdir}"
287287
COMPONENT sdk-overlay)
288288

289+
# FIXME: Can we drop Glibc for android?
290+
if ("${sdk}" STREQUAL "ANDROID")
291+
swift_install_in_component(FILES
292+
"android.modulemap"
293+
DESTINATION "lib/swift/${arch_subdir}"
294+
COMPONENT sdk-overlay)
295+
endif()
296+
289297
if(SWIFT_BUILD_STATIC_STDLIB)
290298
swift_install_in_component(FILES "${glibc_modulemap_out}"
291299
DESTINATION "lib/swift_static/${arch_subdir}"
@@ -345,4 +353,4 @@ if(WINDOWS IN_LIST SWIFT_SDKS)
345353
winsdk.modulemap
346354
DESTINATION "share"
347355
COMPONENT sdk-overlay)
348-
endif()
356+
endif()

0 commit comments

Comments
 (0)