From e7cd4478407fb0261ba8cec01381eb154d884d1f Mon Sep 17 00:00:00 2001 From: _ov4 Date: Fri, 16 Oct 2026 08:50:23 +0000 Subject: fix(build): install MSYS2 Clang extra-tool archives ClangTargets.cmake checks archives from clang-tools-extra when loading the Clang development package. Install and document the matching split package. Co-Authored-By: Claude Fable 5.1 --- doc/build.md | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'doc') diff --git a/doc/build.md b/doc/build.md index d9f94c6..a3b9cc3 100644 --- a/doc/build.md +++ b/doc/build.md @@ -78,6 +78,7 @@ pacman -S --needed \ mingw-w64-x86_64-cmake \ mingw-w64-x86_64-make \ mingw-w64-x86_64-clang \ + mingw-w64-x86_64-clang-tools-extra \ mingw-w64-x86_64-python ``` @@ -109,6 +110,7 @@ Recommended dependency downloads to the project build directory: mkdir -p build/deps/packages pacman -Sw --noconfirm --cachedir "$PWD/build/deps/packages" \ mingw-w64-x86_64-clang \ + mingw-w64-x86_64-clang-tools-extra \ mingw-w64-x86_64-llvm \ mingw-w64-x86_64-llvm-libs \ mingw-w64-x86_64-llvm-tools \ @@ -125,6 +127,8 @@ already installed dependencies are also downloaded. CMake keeps the packages' `mingw64/` layout under `build/deps/root/`. MSYS2 supplies its current LLVM version; check that it is 23. Windows builds have only been reviewed statically. +The `clang-tools-extra` package is required because MSYS2's `ClangTargets.cmake` checks the extra-tool archives, including `libclangApplyReplacements.a`, when loading the Clang development package, even though cpsc does not invoke those tools. + ### macOS (Homebrew) Install the Xcode Command Line Tools for the macOS SDK, make and package -- cgit v1.3.1-4-g156e