Skip to content

Commit 944ab09

Browse files
rintarobnbarham
authored andcommitted
[CMake] Fix package CMO capability chekcing logic
Package CMO requires '-enable-library-evolution' in 6.1+ compilers. Otherwise: <unknown>:0: error: Library evolution must be enabled for Package CMO rdar://146673779 (cherry picked from commit 860ea2c)
1 parent e056c63 commit 944ab09

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cmake/modules/SwiftCompilerCapability.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ function(swift_get_package_cmo_support out_var)
3939
# > 6.0 : Fixed feature.
4040
swift_supports_compiler_arguments(result
4141
-package-name my-package
42+
-enable-library-evolution
4243
-Xfrontend -package-cmo
4344
-Xfrontend -allow-non-resilient-access
4445
)

0 commit comments

Comments
 (0)