mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[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
This commit is contained in:
@@ -39,6 +39,7 @@ function(swift_get_package_cmo_support out_var)
|
||||
# > 6.0 : Fixed feature.
|
||||
swift_supports_compiler_arguments(result
|
||||
-package-name my-package
|
||||
-enable-library-evolution
|
||||
-Xfrontend -package-cmo
|
||||
-Xfrontend -allow-non-resilient-access
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user