Skip to content

Commit 83a4a0b

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 8e2aa52 commit 83a4a0b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cmake/modules/AddPureSwift.cmake

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,7 @@ function(add_pure_swift_host_library name)
207207
set(module_base "${module_dir}/${name}.swiftmodule")
208208
set(module_file "${module_base}/${module_triple}.swiftmodule")
209209
set(module_interface_file "${module_base}/${module_triple}.swiftinterface")
210+
set(module_private_interface_file "${module_base}/${module_triple}.private.swiftinterface")
210211
set(module_sourceinfo_file "${module_base}/${module_triple}.swiftsourceinfo")
211212

212213
set_target_properties(${name} PROPERTIES
@@ -231,7 +232,8 @@ function(add_pure_swift_host_library name)
231232
-enable-library-evolution;
232233
-emit-module-path;${module_file};
233234
-emit-module-source-info-path;${module_sourceinfo_file};
234-
-emit-module-interface-path;${module_interface_file}
235+
-emit-module-interface-path;${module_interface_file};
236+
-emit-private-module-interface-path;${module_private_interface_file}
235237
>)
236238
else()
237239
# Emit a swiftmodule in the current directory.

0 commit comments

Comments
 (0)