Skip to content

Commit 6241386

Browse files
committed
build: match hardcoded extensions in the compiler
The swiftdoc partials must have the extension .swiftdoc. Adjust the output names to match this assumption. This is needed to repair the CMake build with the newer compiler.
1 parent b5918c1 commit 6241386

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cmake/modules/SwiftSupport.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ function(add_swift_target target)
6666
get_filename_component(name ${source} NAME)
6767

6868
set(obj ${CMAKE_CURRENT_BINARY_DIR}/${target}.dir/${name}${CMAKE_C_OUTPUT_EXTENSION})
69-
set(mod ${CMAKE_CURRENT_BINARY_DIR}/${target}.dir/${name}.swiftmodule~partial)
70-
set(doc ${CMAKE_CURRENT_BINARY_DIR}/${target}.dir/${name}.swiftdoc~partial)
69+
set(mod ${CMAKE_CURRENT_BINARY_DIR}/${target}.dir/${name}.swiftmodule)
70+
set(doc ${CMAKE_CURRENT_BINARY_DIR}/${target}.dir/${name}.swiftdoc)
7171

7272
set(all_sources ${sources})
7373
list(INSERT all_sources ${i} -primary-file)

0 commit comments

Comments
 (0)