Skip to content

Commit f75de68

Browse files
committed
The PackageDescription.swiftdoc file is missing on Darwin. Without it, we don't see API documentation.
This fix covers both CMake and the bootstrap script.
1 parent 7afc6e2 commit f75de68

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Sources/PackageDescription/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ foreach(PACKAGE_DESCRIPTION_VERSION 4 4_2)
5757
if(CMAKE_HOST_SYSTEM_NAME STREQUAL Darwin)
5858
install(FILES
5959
${CMAKE_BINARY_DIR}/pm/${PACKAGE_DESCRIPTION_VERSION}/PackageDescription.swiftinterface
60+
${CMAKE_BINARY_DIR}/pm/${PACKAGE_DESCRIPTION_VERSION}/PackageDescription.swiftdoc
6061
DESTINATION lib/swift/pm/${PACKAGE_DESCRIPTION_VERSION}
6162
)
6263
else()

Utilities/bootstrap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ def install_swiftpm(prefix, args):
389389
files_to_install.append("PackageDescription.swiftinterface")
390390
else:
391391
files_to_install.append("PackageDescription.swiftmodule")
392-
files_to_install.append("PackageDescription.swiftdoc")
392+
files_to_install.append("PackageDescription.swiftdoc")
393393

394394
for file in files_to_install:
395395
src = os.path.join(runtime_lib_src, runtime, file)

0 commit comments

Comments
 (0)