Skip to content

Commit 740e454

Browse files
committed
[CMake] Fix package CMO capability checking logic
Package CMO requires '-enable-library-evolution' in 6.1+ compilers.
1 parent 2e0d555 commit 740e454

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
@@ -51,6 +51,7 @@ function(swift_get_package_cmo_support out_var)
5151
# > 6.0 : Fixed feature.
5252
swift_supports_compiler_arguments(result
5353
-package-name my-package
54+
-enable-library-evolution
5455
-Xfrontend -package-cmo
5556
-Xfrontend -allow-non-resilient-access
5657
)

0 commit comments

Comments
 (0)