Skip to content

Commit 16552c0

Browse files
committed
Fix linux build
1 parent 513303f commit 16552c0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

stdlib/public/stubs/CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,5 +42,7 @@ add_swift_library(swiftStdlibStubs OBJECT_LIBRARY TARGET_LIBRARY
4242
LINK_FLAGS ${SWIFT_RUNTIME_CORE_LINK_FLAGS}
4343
INSTALL_IN_COMPONENT stdlib)
4444

45-
set_property(SOURCE SwiftNativeNSXXXBaseARC.m APPEND_STRING PROPERTY COMPILE_FLAGS
45+
if(CMAKE_SYSTEM_NAME STREQUAL "Darwin")
46+
set_property(SOURCE SwiftNativeNSXXXBaseARC.m APPEND_STRING PROPERTY COMPILE_FLAGS
4647
"-fobjc-arc")
48+
endif()

0 commit comments

Comments
 (0)