From 740e45412b55d03568f0d3a7be1bdaca18d09053 Mon Sep 17 00:00:00 2001 From: Rintaro Ishizaki Date: Tue, 11 Mar 2025 13:39:04 -0700 Subject: [PATCH] [CMake] Fix package CMO capability checking logic Package CMO requires '-enable-library-evolution' in 6.1+ compilers. --- cmake/modules/SwiftCompilerCapability.cmake | 1 + 1 file changed, 1 insertion(+) diff --git a/cmake/modules/SwiftCompilerCapability.cmake b/cmake/modules/SwiftCompilerCapability.cmake index 7a00b319aae..6ae87e0bbaf 100644 --- a/cmake/modules/SwiftCompilerCapability.cmake +++ b/cmake/modules/SwiftCompilerCapability.cmake @@ -51,6 +51,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 )