Skip to content

Conversation

@johnbute
Copy link

Summary

swiftlang/swift builds are failing when building docs in windows due to SwiftDocCUtilities not having a CMakeLists.txt file.

`[2025-11-17 01:28:56] Building 'C:\Users\swift-ci\jenkins\workspace\swift-PR-windows\swift-docc' to 'T:\x86_64-unknown-windows-msvc\DocC' ...
C:\Program Files\CMake\bin\cmake.exe -B T:\x86_64-unknown-windows-msvc\DocC -S C:\Users\swift-ci\jenkins\workspace\swift-PR-windows\swift-docc -G Ninja -D ArgumentParser_DIR=T:/x86_64-unknown-windows-msvc/ArgumentParser/cmake/modules -D BUILD_SHARED_LIBS=YES -D CMAKE_BUILD_TYPE=Release -D CMAKE_C_COMPILER=T:/5/bin/clang-cl.exe -D CMAKE_C_COMPILER_TARGET=x86_64-unknown-windows-msvc -D CMAKE_C_FLAGS=/GS- /Gw /Gy /Oy /Oi /Zc:inline -D CMAKE_EXE_LINKER_FLAGS=/INCREMENTAL:NO /OPT:REF /OPT:ICF -D CMAKE_FIND_PACKAGE_PREFER_CONFIG=YES -D CMAKE_INSTALL_PREFIX=T:/Program Files/Swift/Toolchains/0.0.0+Asserts/usr -D CMAKE_MAKE_PROGRAM=C:/Program Files/Microsoft Visual Studio/2022/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/Ninja/ninja.exe -D CMAKE_SHARED_LINKER_FLAGS=/INCREMENTAL:NO /OPT:REF /OPT:ICF -D CMAKE_STATIC_LIBRARY_PREFIX_Swift=lib -D CMAKE_Swift_COMPILER=T:/5/bin/swiftc.exe -D CMAKE_Swift_COMPILER_TARGET=x86_64-unknown-windows-msvc -D CMAKE_Swift_COMPILER_WORKS=YES -D CMAKE_Swift_FLAGS=-sdk "T:/Program Files/Swift/Platforms/Windows.platform/Developer/SDKs/Windows.sdk" -gnone -Xlinker /INCREMENTAL:NO -Xlinker /OPT:REF -Xlinker /OPT:ICF -D CMAKE_Swift_FLAGS_RELEASE=-O -D CMAKE_Swift_FLAGS_RELWITHDEBINFO=-O -D cmark-gfm_DIR=T:/Program Files/Swift/Toolchains/0.0.0+Asserts/usr/lib/cmake -D LMDB_DIR=T:/x86_64-unknown-windows-msvc/LMDB/cmake/modules -D SwiftASN1_DIR=T:/x86_64-unknown-windows-msvc/ASN1/cmake/modules -D SwiftCrypto_DIR=T:/x86_64-unknown-windows-msvc/Crypto/cmake/modules -D SwiftMarkdown_DIR=T:/x86_64-unknown-windows-msvc/Markdown/cmake/modules -D SymbolKit_DIR=T:/x86_64-unknown-windows-msvc/SymbolKit/cmake/modules
-- The C compiler identification is Clang 21.1.6 with MSVC-like command-line
-- The Swift compiler identification is Apple 6.3
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: T:/5/bin/clang-cl.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
CMake Error at Sources/CMakeLists.txt:11 (add_subdirectory):
The source directory

C:/Users/swift-ci/jenkins/workspace/swift-PR-windows/swift-docc/Sources/SwiftDocCUtilities

does not contain a CMakeLists.txt file.
`

@johnbute johnbute changed the title added cmakelist file added cmakelist file to SwiftDocCUtilities Nov 17, 2025
@johnbute
Copy link
Author

@swift-ci please test

Copy link
Contributor

@d-ronnqvist d-ronnqvist left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this sufficient for the Windows CMake build to work or does the "DocCCommon" target also need a CMakeLists file? Also, does the "SwiftDocC" CMakeLists file need to add the linking information for it?

@compnerd
Copy link
Member

#1356 should address the required changes

@d-ronnqvist
Copy link
Contributor

#1356 should address the required changes

So no changes are needed for the "DocCCommon" target?

@compnerd
Copy link
Member

#1356 should address the required changes

So no changes are needed for the "DocCCommon" target?

That is rolled in, along with the changes to the file list for the SwiftDocC target, and its dependencies.

@d-ronnqvist
Copy link
Contributor

Thanks for checking / confirming.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants