Skip to content

Commit 3164414

Browse files
committed
[CMake] Build with library evolution and generate Swift interfaces.
1 parent 6dabd36 commit 3164414

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
@@ -39,8 +39,10 @@ function(add_swift_host_library name)
3939
target_compile_options("${name}" PRIVATE
4040
$<$<COMPILE_LANGUAGE:Swift>:
4141
-module-name;${name};
42+
-enable-library-evolution;
4243
-emit-module-path;${module_file};
43-
-emit-module-source-info-path;${module_sourceinfo_file}
44+
-emit-module-source-info-path;${module_sourceinfo_file};
45+
-emit-module-interface-path;${module_interface_file}
4446
>)
4547

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

0 commit comments

Comments
 (0)