Skip to content

Commit 3d566a3

Browse files
committed
[CMake] Expand SWIFT_MODULE_DEPENDS_LINUX to Android
2633a0f expanded SWIFT_MODULE_DEPENDS_* to treat Linux and FreeBSD separately. Android needs the same treatment as Linux, so expand the Linux check to include Android as well. These changes fix an Android build error, in which Glibc was not linked to private stdlib libraries that relied upon it.
1 parent 4bc4f51 commit 3d566a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmake/modules/AddSwift.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1204,7 +1204,7 @@ function(add_swift_library name)
12041204
elseif("${sdk}" STREQUAL "FREEBSD")
12051205
list(APPEND swiftlib_module_depends_flattened
12061206
${SWIFTLIB_SWIFT_MODULE_DEPENDS_FREEBSD})
1207-
elseif("${sdk}" STREQUAL "LINUX")
1207+
elseif("${sdk}" STREQUAL "LINUX" OR "${sdk}" STREQUAL "ANDROID")
12081208
list(APPEND swiftlib_module_depends_flattened
12091209
${SWIFTLIB_SWIFT_MODULE_DEPENDS_LINUX})
12101210
endif()

0 commit comments

Comments
 (0)