File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -109,6 +109,10 @@ elseif(CMAKE_SYSTEM_NAME STREQUAL Windows)
109
109
set (WORKAROUND_SR9138 -Xlinker;-ignore:4049;-Xlinker;-ignore:4217 )
110
110
endif ()
111
111
112
+ if (CMAKE_SYSTEM_NAME STREQUAL Android )
113
+ set (WORKAROUND_PR26110 -Xclang-linker -nostdlib++ )
114
+ endif ()
115
+
112
116
# NOTE(compnerd) this is a horrible hack to work around the fact that we do not
113
117
# have a proper library target for Foundation which can link against the
114
118
# CoreFoundation target. When we gain proper CMake support for Swift, we should
@@ -284,6 +288,7 @@ add_swift_library(Foundation
284
288
$< $< PLATFORM_ID:Windows> :-lShell32>
285
289
$< $< PLATFORM_ID:Windows> :-lpathcch>
286
290
$< $< PLATFORM_ID:Windows> :$< TARGET_OBJECTS:CoreFoundationResources> >
291
+ ${WORKAROUND_PR26110}
287
292
SWIFT_FLAGS
288
293
-Xcc -F${CMAKE_CURRENT_BINARY_DIR}
289
294
-DDEPLOYMENT_RUNTIME_SWIFT
@@ -348,6 +353,7 @@ add_swift_library(FoundationNetworking
348
353
${Foundation_RPATH}
349
354
${WORKAROUND_SR9138}
350
355
${WORKAROUND_SR9995}
356
+ ${WORKAROUND_PR26110}
351
357
SWIFT_FLAGS
352
358
-DDEPLOYMENT_RUNTIME_SWIFT
353
359
-DNS_BUILDING_FOUNDATION_NETWORKING
You can’t perform that action at this time.
0 commit comments