Skip to content

Commit e14af92

Browse files
authored
Merge pull request #2413 from etcwilde/ewilde/emit-private-interface
Emit private interfaces on all swift libraries
2 parents af5df27 + 766a260 commit e14af92

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,6 +44,7 @@ function(add_swift_syntax_library name)
4444
set(module_base "${module_dir}/${name}.swiftmodule")
4545
set(module_file "${module_base}/${SWIFT_HOST_MODULE_TRIPLE}.swiftmodule")
4646
set(module_interface_file "${module_base}/${SWIFT_HOST_MODULE_TRIPLE}.swiftinterface")
47+
set(module_private_interface_file "${module_base}/${SWIFT_HOST_MODULE_TRIPLE}.private.swiftinterface")
4748
set(module_sourceinfo_file "${module_base}/${SWIFT_HOST_MODULE_TRIPLE}.swiftsourceinfo")
4849

4950
# Add a custom target to create the module directory.
@@ -76,7 +77,8 @@ function(add_swift_syntax_library name)
7677
-enable-library-evolution;
7778
-emit-module-path;${module_file};
7879
-emit-module-source-info-path;${module_sourceinfo_file};
79-
-emit-module-interface-path;${module_interface_file}
80+
-emit-module-interface-path;${module_interface_file};
81+
-emit-private-module-interface-path;${module_private_interface_file}
8082
>)
8183
if(SWIFT_MODULE_ABI_NAME_PREFIX)
8284
# ABI name prefix. this can be used to avoid name conflicts.

0 commit comments

Comments
 (0)