File tree Expand file tree Collapse file tree 2 files changed +12
-11
lines changed Expand file tree Collapse file tree 2 files changed +12
-11
lines changed Original file line number Diff line number Diff line change @@ -405,6 +405,18 @@ option(SWIFT_REPORT_STATISTICS
405
405
"Create json files which contain internal compilation statistics"
406
406
FALSE )
407
407
408
+ # Only Darwin platforms enable ObjC interop by default.
409
+ if ("${SWIFT_HOST_VARIANT_SDK} " MATCHES "(OSX|IOS*|TVOS*|WATCHOS*)" )
410
+ set (SWIFT_STDLIB_ENABLE_OBJC_INTEROP_default TRUE )
411
+ else ()
412
+ set (SWIFT_STDLIB_ENABLE_OBJC_INTEROP_default FALSE )
413
+ endif ()
414
+
415
+ # Used by stdlib/toolchain as well, so this cannot be in stdlib/CMakeLists.txt
416
+ option (SWIFT_STDLIB_ENABLE_OBJC_INTEROP
417
+ "Should stdlib be built with Obj-C interop."
418
+ "${SWIFT_STDLIB_ENABLE_OBJC_INTEROP_default} " )
419
+
408
420
#
409
421
# User-configurable experimental options. Do not use in production builds.
410
422
#
Original file line number Diff line number Diff line change @@ -68,13 +68,6 @@ else()
68
68
set (SWIFT_STDLIB_HAS_ASL_default FALSE )
69
69
endif ()
70
70
71
- # Only Darwin platforms enable ObjC interop by default.
72
- if ("${SWIFT_HOST_VARIANT_SDK} " MATCHES "(OSX|IOS*|TVOS*|WATCHOS*)" )
73
- set (SWIFT_STDLIB_ENABLE_OBJC_INTEROP_default TRUE )
74
- else ()
75
- set (SWIFT_STDLIB_ENABLE_OBJC_INTEROP_default FALSE )
76
- endif ()
77
-
78
71
#
79
72
# User-configurable options for the standard library.
80
73
#
@@ -86,10 +79,6 @@ option(SWIFT_STDLIB_STABLE_ABI
86
79
"Should stdlib be built with stable ABI (library evolution, resilience)."
87
80
"${SWIFT_STDLIB_STABLE_ABI_default} " )
88
81
89
- option (SWIFT_STDLIB_ENABLE_OBJC_INTEROP
90
- "Should stdlib be built with Obj-C interop."
91
- "${SWIFT_STDLIB_ENABLE_OBJC_INTEROP_default} " )
92
-
93
82
option (SWIFT_ENABLE_MODULE_INTERFACES
94
83
"Generate .swiftinterface files alongside .swiftmodule files"
95
84
"${SWIFT_STDLIB_STABLE_ABI} " )
You can’t perform that action at this time.
0 commit comments