We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 513303f commit 16552c0Copy full SHA for 16552c0
stdlib/public/stubs/CMakeLists.txt
@@ -42,5 +42,7 @@ add_swift_library(swiftStdlibStubs OBJECT_LIBRARY TARGET_LIBRARY
42
LINK_FLAGS ${SWIFT_RUNTIME_CORE_LINK_FLAGS}
43
INSTALL_IN_COMPONENT stdlib)
44
45
-set_property(SOURCE SwiftNativeNSXXXBaseARC.m APPEND_STRING PROPERTY COMPILE_FLAGS
+if(CMAKE_SYSTEM_NAME STREQUAL "Darwin")
46
+ set_property(SOURCE SwiftNativeNSXXXBaseARC.m APPEND_STRING PROPERTY COMPILE_FLAGS
47
"-fobjc-arc")
48
+endif()
0 commit comments