2 minor findings · 4 suggestions
Earlier concerns neither republished nor resolved: 1 minor finding. See the Run archive for their assessments.
Findings
[minor] · Windows presets no longer align the target with their x64 dependencies
On ARM64 Windows hosts, a fresh Visual Studio configuration using either Windows preset defaults to ARM64 while vcpkg supplies x64 libraries, preventing a successful build.
Location: CMakePresets.json:12 (head).
Details and suggested fix
Both presets retain their x64-windows or x64-windows-static triplet but remove "architecture": "x64" and the Visual Studio generator. Without an architecture override, a fresh Visual Studio configuration on an ARM64 host targets ARM64, making the x64 dependencies incompatible. Removing the generator also means that CMAKE_GENERATOR=Ninja now causes configuration to fail because Ninja rejects "toolset": "ClangCL". Restore an explicit x64 architecture and a compatible Visual Studio generator in both presets. Passing -A x64 avoids the dependency mismatch, but the separately reported builtins-suffix selection still needs correction. CI imports an x64 developer environment, and no ARM64-host invocation was identified.
[minor] · Builtins archive selection follows the host instead of the compiler target
A Visual Studio host/target mismatch selects the wrong clang_rt.builtins archive, which can prevent linking targets that use __int128 division.
Location: CMakeLists.txt:329 (head).
Details and suggested fix
In a native Visual Studio configuration, CMAKE_SYSTEM_PROCESSOR can describe the host even when -A selects a different compiler target. This branch therefore selects clang_rt.builtins-x86_64 for -A ARM64 on an AMD64 host, or the aarch64 archive for -A x64 on an ARM64 host. clang-cl enables the __SIZEOF_INT128__ path in FeeFrac::Div, whose division requires compatible runtime helpers. The selected archive can be missing or incompatible with the emitted objects, causing a link failure. Derive the suffix from the compiler target, such as CMAKE_CXX_COMPILER_ARCHITECTURE_ID, rather than the host processor. Restoring the preset architecture alone does not fix this selector. No checked-in preset or CI invocation selecting different host and target architectures was found.
Optional improvements
[suggestion] · Native Windows compiler-version guidance is ambiguous
The guide requests a clang-cl version check, but the linked table gives Clang 17.0 and Visual Studio 18.7 without naming the intended bundled LLVM 22.1.3 minimum.
Location: doc/build-windows-native.md:32 (head).
Details and suggested fix
The native Windows row already requires Visual Studio 18.7, but it gives an IDE version rather than the compiler-component version that this instruction asks readers to check. The only explicit Clang version in the table is 17.0, which can be mistaken for the native Windows minimum. The compiler-switch commit explains that Visual Studio 18.7 supplies LLVM 22.1.3 with llvm-project#165285. State the requirement directly, for example, “Visual Studio 2026 18.7 or later, with bundled clang-cl/LLVM 22.1.3 or later,” and direct readers to the native Windows row.
[suggestion] · Native Windows return-type exceptions apply only in CI
Local clang-cl builds that enable warnings-as-errors do not inherit CI's return-type exception, unlike the shared CMake suppression in the cl.exe build.
Location: .github/ci-windows.py:71 (head).
Details and suggested fix
The base suppresses C4715 in warn_interface for every MSVC build. Its replacement, -Wno-error=return-type, now comes only from ci-windows.py, alongside configure-wide exceptions for conditional-uninitialized and unused-macros. With the MS CRT, assert(false) need not be recognized as a noreturn operation, so non-void functions such as EvalChecksig can emit -Wreturn-type. A local -DCMAKE_COMPILE_WARNING_AS_ERROR=ON build then treats that diagnostic as an error while CI downgrades it; the option remains OFF by default. Move the MS-CRT-specific return-type exception into the if(MSVC) branch of warn_interface, and identify the sources requiring the other exceptions. This is a local/CI policy mismatch, not weaker enforcement than the cl.exe baseline.
[suggestion] · Release note omits Windows build migration requirements
The release note does not tell existing native builders about the renamed presets, the Visual Studio 18.7 minimum, or the newly required clang-cl components.
Location: doc/release-notes-31507.md:4 (head).
Details and suggested fix
Commands using --preset vs2026 or --preset vs2026-static now fail because those names were replaced by windows and windows-static without compatibility aliases. Existing Visual Studio 18.3–18.6 installations also no longer meet the native toolchain requirement. Add a migration paragraph naming the replacement presets and requiring Visual Studio 18.7 or later, with bundled clang-cl/LLVM 22.1.3, plus the “C++ Clang Compiler for Windows” and “MSBuild support for LLVM (clang-cl) toolset” components. This gives existing builders the upgrade steps that the explanation for dropping cl.exe does not provide.
[suggestion] · Unused cstdlib include remains after removing the MSVC byteswap implementation
Removing the _byteswap_* implementation leaves its _MSC_VER-guarded <cstdlib> include unused.
Location: src/compat/byteswap.h:29 (base).
Details and suggested fix
The guarded <cstdlib> include supplied declarations for _byteswap_ushort, _byteswap_ulong and _byteswap_uint64. This PR removes their mappings, leaving only __builtin_bswap* implementations and arithmetic fallbacks, which need <cstdint> but no declarations from <cstdlib>. Remove the remaining guarded include at lines 9–11 along with the implementation it supported.
Earlier concerns
Earlier reports raised these, with the titles and severities shown there. This review neither republished nor resolved them.
- [minor]: Windows preset can fail when Ninja is the default generator