Skip to content

Commit 766a260

Browse files
committed
Emit private interfaces on all swift libraries
Swift-driver PR [1043](swiftlang/swift-driver#1043) updated the new driver to always emit private swiftinterface files. This was not carried back to the old driver, so attempting to bootstrap the toolchain on a system that does not have the new driver fails to install because we try to install the private swiftinterface on all Swift targets.
1 parent 184930a commit 766a260

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)