Skip to content

Commit 2f1be83

Browse files
committed
[CMake] Build with library evolution and generate Swift interfaces.
1 parent 11f1138 commit 2f1be83

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cmake/modules/AddSwiftHostLibrary.cmake

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,10 @@ function(add_swift_host_library name)
4444
target_compile_options("${name}" PRIVATE
4545
$<$<COMPILE_LANGUAGE:Swift>:
4646
-module-name;${name};
47+
-enable-library-evolution;
4748
-emit-module-path;${module_file};
48-
-emit-module-source-info-path;${module_sourceinfo_file}
49+
-emit-module-source-info-path;${module_sourceinfo_file};
50+
-emit-module-interface-path;${module_interface_file}
4951
>)
5052

5153
# NOTE: workaround for CMake not setting up include flags yet

0 commit comments

Comments
 (0)