Skip to content

Commit ca41171

Browse files
committed
[CMake] Copy '.private.swiftinteface' to swift_static.
'.private.swiftinterface' should be a part of the module. And it's declared as `OUTPUT` file list, but they were never created. Because of that the target was always rebuilt.
1 parent 064cb34 commit ca41171

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

stdlib/cmake/modules/SwiftSource.cmake

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1001,7 +1001,9 @@ function(_compile_swift_files
10011001
if(SWIFTFILE_STATIC)
10021002
set(command_copy_interface_file)
10031003
if(interface_file)
1004-
set(command_copy_interface_file COMMAND "${CMAKE_COMMAND}" "-E" "copy" ${interface_file} ${interface_file_static})
1004+
set(command_copy_interface_file
1005+
COMMAND "${CMAKE_COMMAND}" "-E" "copy" ${interface_file} ${interface_file_static}
1006+
COMMAND "${CMAKE_COMMAND}" "-E" "copy" ${private_interface_file} ${private_interface_file_static})
10051007
endif()
10061008
add_custom_command_target(
10071009
module_dependency_target_static

0 commit comments

Comments
 (0)