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 @@ -115,7 +115,7 @@ let package = Package(
115
115
name: " PackageDescription " ,
116
116
swiftSettings: [
117
117
. unsafeFlags( [ " -package-description-version " , " 999.0 " ] ) ,
118
- . unsafeFlags( [ " -enable-library-evolution " ] )
118
+ . unsafeFlags( [ " -enable-library-evolution " ] , . when ( platforms : [ . macOS ] ) )
119
119
] ) ,
120
120
121
121
// The `PackagePlugin` target provides the API that is available to
@@ -125,7 +125,7 @@ let package = Package(
125
125
name: " PackagePlugin " ,
126
126
swiftSettings: [
127
127
. unsafeFlags( [ " -package-description-version " , " 999.0 " ] ) ,
128
- . unsafeFlags( [ " -enable-library-evolution " ] )
128
+ . unsafeFlags( [ " -enable-library-evolution " ] , . when ( platforms : [ . macOS ] ) )
129
129
] ) ,
130
130
131
131
// 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