File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -120,7 +120,7 @@ let package = Package(
120
120
name: " PackageDescription " ,
121
121
swiftSettings: [
122
122
. unsafeFlags( [ " -package-description-version " , " 999.0 " ] ) ,
123
- . unsafeFlags( [ " -enable-library-evolution " ] )
123
+ . unsafeFlags( [ " -enable-library-evolution " ] , . when ( platforms : [ . macOS ] ) )
124
124
] ) ,
125
125
126
126
// The `PackagePlugin` target provides the API that is available to
@@ -130,7 +130,7 @@ let package = Package(
130
130
name: " PackagePlugin " ,
131
131
swiftSettings: [
132
132
. unsafeFlags( [ " -package-description-version " , " 999.0 " ] ) ,
133
- . unsafeFlags( [ " -enable-library-evolution " ] )
133
+ . unsafeFlags( [ " -enable-library-evolution " ] , . when ( platforms : [ . macOS ] ) )
134
134
] ) ,
135
135
136
136
// MARK: SwiftPM specific support libraries
Original file line number Diff line number Diff line change @@ -21,10 +21,10 @@ add_library(PackageDescription
21
21
22
22
target_compile_options (PackageDescription PUBLIC
23
23
$< $< COMPILE_LANGUAGE:Swift> :-package-description-version$< SEMICOLON> 999.0> )
24
- target_compile_options (PackageDescription PUBLIC
25
- $< $< COMPILE_LANGUAGE:Swift> :-enable-library-evolution> )
26
24
27
25
if (CMAKE_HOST_SYSTEM_NAME STREQUAL Darwin )
26
+ target_compile_options (PackageDescription PUBLIC
27
+ $< $< COMPILE_LANGUAGE:Swift> :-enable-library-evolution> )
28
28
set (SWIFT_INTERFACE_PATH ${CMAKE_BINARY_DIR} /pm/ManifestAPI/PackageDescription.swiftinterface )
29
29
target_compile_options (PackageDescription PUBLIC
30
30
$< $< COMPILE_LANGUAGE:Swift> :-emit-module-interface-path$< SEMICOLON> ${SWIFT_INTERFACE_PATH} > )
Original file line number Diff line number Diff line change @@ -17,10 +17,10 @@ add_library(PackagePlugin
17
17
18
18
target_compile_options (PackagePlugin PUBLIC
19
19
$< $< COMPILE_LANGUAGE:Swift> :-package-description-version$< SEMICOLON> 999.0> )
20
- target_compile_options (PackagePlugin PUBLIC
21
- $< $< COMPILE_LANGUAGE:Swift> :-enable-library-evolution> )
22
20
23
21
if (CMAKE_HOST_SYSTEM_NAME STREQUAL Darwin )
22
+ target_compile_options (PackagePlugin PUBLIC
23
+ $< $< COMPILE_LANGUAGE:Swift> :-enable-library-evolution> )
24
24
set (SWIFT_INTERFACE_PATH ${CMAKE_BINARY_DIR} /pm/PluginAPI/PackagePlugin.swiftinterface )
25
25
target_compile_options (PackagePlugin PUBLIC
26
26
$< $< COMPILE_LANGUAGE:Swift> :-emit-module-interface-path$< SEMICOLON> ${SWIFT_INTERFACE_PATH} > )
You can’t perform that action at this time.
0 commit comments