Skip to content

Commit 9913468

Browse files
authored
Merge pull request #24636 from compnerd/custom-cross
stubs: configure flags based on SDK target
2 parents cb7e3d5 + 08dfdf0 commit 9913468

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/public/stubs/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ add_swift_target_library(swiftStdlibStubs
4141
INSTALL_IN_COMPONENT
4242
stdlib)
4343

44-
if(CMAKE_SYSTEM_NAME STREQUAL "Darwin")
44+
if("${SWIFT_PRIMARY_VARIANT_SDK}" IN_LIST SWIFT_APPLE_PLATFORMS)
4545
set_property(SOURCE
4646
SwiftNativeNSXXXBaseARC.m
4747
APPEND_STRING PROPERTY COMPILE_FLAGS

0 commit comments

Comments
 (0)