build: explicitly disable cl.exe

bitcoin/bitcoin: PR #36839

1 suggestion

Optional improvements

Link

[suggestion] · The cl.exe rejection does not identify the supported toolset

The linked documentation offers preset-based recovery, but neither the error nor its linked Building section names the clang-cl requirement, leaving developers retaining a non-preset configuration to infer the necessary compiler change.

Location: CMakeLists.txt:86 (head).

Details and suggested fix

When a native Windows configure selects cl.exe, this guard stops configuration and prints the compiler path, a documentation pointer and an unsupported bypass. The linked Building section uses presets without explaining that both select the ClangCL toolset. Keep the link, but add an explicit line such as Supported native Windows C++ builds require clang-cl (Visual Studio ClangCL toolset). This identifies the supported change for custom configurations without duplicating the documented commands. Put the unsupported bypass on a separate line so it is distinct from the supported recovery path.


Coverage details