Skip to content

Commit 47d72ae

Browse files
authored
Revert "build: don't link C++ runtime on android"
1 parent ac15bae commit 47d72ae

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

CMakeLists.txt

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -109,10 +109,6 @@ elseif(CMAKE_SYSTEM_NAME STREQUAL Windows)
109109
set(WORKAROUND_SR9138 -Xlinker;-ignore:4049;-Xlinker;-ignore:4217)
110110
endif()
111111

112-
if(CMAKE_SYSTEM_NAME STREQUAL Android)
113-
set(WORKAROUND_PR26110 -Xclang-linker -nostdlib++)
114-
endif()
115-
116112
# NOTE(compnerd) this is a horrible hack to work around the fact that we do not
117113
# have a proper library target for Foundation which can link against the
118114
# CoreFoundation target. When we gain proper CMake support for Swift, we should
@@ -288,7 +284,6 @@ add_swift_library(Foundation
288284
$<$<PLATFORM_ID:Windows>:-lShell32>
289285
$<$<PLATFORM_ID:Windows>:-lpathcch>
290286
$<$<PLATFORM_ID:Windows>:$<TARGET_OBJECTS:CoreFoundationResources>>
291-
${WORKAROUND_PR26110}
292287
SWIFT_FLAGS
293288
-Xcc -F${CMAKE_CURRENT_BINARY_DIR}
294289
-DDEPLOYMENT_RUNTIME_SWIFT
@@ -353,7 +348,6 @@ add_swift_library(FoundationNetworking
353348
${Foundation_RPATH}
354349
${WORKAROUND_SR9138}
355350
${WORKAROUND_SR9995}
356-
${WORKAROUND_PR26110}
357351
SWIFT_FLAGS
358352
-DDEPLOYMENT_RUNTIME_SWIFT
359353
-DNS_BUILDING_FOUNDATION_NETWORKING

0 commit comments

Comments
 (0)