[WinCairo] CMake 3.25.0: ninja: error: dependency cycle: Source/WebCore/CMakeFiles/WebCore.dir/CXX.dd > ninja: error: dependency cycle: Source/WebCore/CMakeFiles/WebCore.dir/CXX.dd -> Source/WebCore/CMakeFiles/WebCore.dir/platform/graphics/FormatConverter.cpp.obj.ddi -> Source/WebCore/WebCore_SOURCES/WebCorePrefix.pch -> > Source/WebCore/CMakeFiles/WebCore.dir/WebCorePrefix.cpp.obj -> Source/WebCore/CMakeFiles/WebCore.dir/CXX.dd
I'm observing no problem for building with Visual Studio generator. build-webkit --wincairo --debug --no-ninja
Created attachment 463645 [details] Patch to use target_precompile_headers I tried to use target_precompile_headers, but it failed. > ninja: error: dependency cycle: Source/WebCore/CMakeFiles/WebCore.dir/cmake_pch.cxx.obj -> Source/WebCore/CMakeFiles/WebCore.dir/CXX.dd -> Source/WebCore/CMakeFiles/WebCore.dir/platform/graphics/FormatConverter.cpp.obj.ddi -> > Source/WebCore/CMakeFiles/WebCore.dir/cmake_pch.cxx.pch -> Source/WebCore/CMakeFiles/WebCore.dir/cmake_pch.cxx.obj
I overlooked a CMake warning: > CMake Warning (dev): > C++20 modules support via CMAKE_EXPERIMENTAL_CXX_MODULE_DYNDEP is > experimental. It is meant only for compiler developers to try. > This warning is for project developers. Use -Wno-dev to suppress it. we should disable it > set(CMAKE_EXPERIMENTAL_CXX_MODULE_DYNDEP 0)
Created attachment 463650 [details] Patch
Comment on attachment 463650 [details] Patch r=me, seems fine based on the quote you gave.
Committed 256922@main (8b54e8f36f5f): <https://commits.webkit.org/256922@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 463650 [details].