mirror of
https://github.com/bitcoin/bitcoin
synced 2026-12-04 10:50:37 +00:00
build: explicitly disable cl.exe #36839
No reviewers
Labels
No labels
Android
Backport
Block storage
Brainstorming
Bug
Build system
CI failed
Consensus
Data corruption
Descriptors
Docs
DrahtBot Guix build requested
Feature
Fuzzing
GUI
Good First Review
IPC
Insufficient Review
Kernel
Linux/Unix
Mempool
Mining
Needs Backport (31.x)
Needs Backport (32.x)
Needs Benchmark
Needs Conceptual Review
Needs backport (30.x)
Needs rebase
Needs release note
Net
P2P
PSBT
Privacy
Private Broadcast
Questions and Help
RPC/REST/ZMQ
Refactoring
Resource usage
Review club
Scripts and tools
Settings
TX fees and policy
Tests
Tracking Issue
UTXO Db and Indexes
Up for grabs
Upstream
Utils/log/libs
Validation
Waiting for author
Wallet
Windows
good first issue
interfaces
macOS
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
bitcoin/bitcoin!36839
Loading…
Reference in a new issue
No description provided.
Delete branch "disable_cl_cmake"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Since
4f1e6de6(https://github.com/bitcoin/bitcoin/pull/31507), cmake for visual studio can only generate projects that use clang-cl.But calling cmake without '--preset windows' or '-T ClangCL' still silently generates projects that cannot build anymore.
For example, a build with cl now fails in minisketchwrapper.c because we don't pass anymore a cl option to set __cplusplus value properly.
I propose we explicitly tell at cmake time that this can't work anymore. If not, a lot of windows devs who use cmake without presets will lose time on this.
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
External sites
Reviews
See the guideline and AI policy for information on the review process.
A summary of reviews will appear here.
Conflicts
Reviewers, this pull request conflicts with the following ones:
If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.
🔵 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).Review coverage was incomplete.
Reviewed:
eca1492f5919· Review report · Previous reportspermalink
could link to the build docs here, similar to how cmake/module/CheckCXXFeatures.cmake does it?
I'm not opposed to this change. However, I do have some concerns.
There are compilers we do not support, yet none of them is explicitly banned. Banning one would make it harder for someone to experiment with it.
FWIW, there is a nightly build that uses
cl.exe.The documentation should help.
Anyway, I wouldn't want to put Windows devs off merely for the reasons I stated above.
In theory, it could be a warning that the compiler is not supported (link to docs) and should only be used at their own risk? However, I am not sure if someone not reading the docs to start will read the warning.
Well, i was not thinking about someone setting up a new build environement; that person should read the doc indeed. But about the devs that already have a custom build env, and will not read the doc at each pull
It seems they added patches to workaround the change in the main repo :
github.com/hebasto/bitcoin-core-nightly@727b9af3e2I updated the message to point to the doc instead of manually listing cmake options
nit: I guess this option is obvious, but it could make sense to spell it out, given that some do that experimentally. But no strong opinion.
That makes sense, thanks
What is the status here? A number of comments but no actual Concept/Approach indication?
I think it is fine to print this error for people who run into this, but I am not sure how common such a setup without the presets is.
Would be good to have the Windows reviewers give a look here.