Repository navigation
Conversation
|
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. External sites
ReviewsSee the guideline and AI policy for information on the review process. ConflictsReviewers, 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. |
1b0d60e to
deb118b
Compare
hebasto
left a comment
There was a problem hiding this comment.
I'm not opposed to this change. However, I do have some concerns.
I propose we explicitly tell at cmake time that this can't work anymore.
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.
If not, a lot of windows devs who use cmake without presets will lose time on this.
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 : hebasto/bitcoin-core-nightly@727b9af |
deb118b to
1d28a5b
Compare
Since 4f1e6de, 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. Explicitly print a fatal error at cmake time if cl.exe is selected and point to the doc.
1d28a5b to
eca1492
Compare
|
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. |

Since 4f1e6de (#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.