Repository navigation
ci: build Bitcoin Core with its minimum Xcode version on macOS - #402
Conversation
The macOS job used the macos-15 runner default Xcode version (16.4), which is older than the Xcode 26.3 minimum in Bitcoin Core's doc/dependencies.md and the CI job there. Select Xcode 26.3, as Bitcoin Core's own CI does.
|
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. ReviewsSee the guideline and AI policy for information on the review process.
If your review is incorrectly listed, please copy-paste ConflictsNo conflicts as of last run. |
|
lgtm, but as you say, this won't fix the stop_token issue: https://godbolt.org/z/75T5dafzb |
|
lgtm ACK 1b47a0a |
|
Thanks for the reviews!
It actually fixes it. The SDK shipped with Xcode 26.3 provides libc++ 20.1, in which Here's a run of #342 cherry-picking this PR: https://github.com/bitcoin-core/libmultiprocess/actions/runs/46020495911/job/140578575899, and it succeeded. In the "Select Xcode" step the libcxx version is logged. |
|
Ugh, so xcode 26.3 is apple clang 17, which is ~ clang 19, but they included ~ libc++-20 Couldn't be more confusing ... |
|
If you want the stop_token, a proper clang bump would have to be done (ref: bitcoin/bitcoin#36036) Though, it may be too early/painful to do. Would next year suffice or maybe you can work around the lack of stop_token? |
|
Yes, I'm working on an approach that keeps |
| # Use the minimum Xcode version denoted in Bitcoin Core's | ||
| # doc/dependencies.md, instead of the runner's default. | ||
| xcode: '26.3' |
There was a problem hiding this comment.
re: nullfail #402 (comment)
In commit "ci: build Bitcoin Core with its minimum Xcode version on macOS" (1b47a0a)
I'm working on an approach that keeps
std::stop_tokenout ofclientInvokeright now, since I also think it's too early to bump clang.
That could be a good idea depending on the approach, but maybe adding -fexperimental-library to builds without bumping the minimum version could also be a decent solution.
There was a problem hiding this comment.
I thought about that too, but I'm afraid enabling -fexperimental-library isn't something we want to do. I've updated #342 with a custom stub class that has the same semantics as stop_token and (now that this PR has merged) is only compiled for FreeBSD + libc++ 19. std::stop_token is used everywhere else.
The macOS job used the macos-15 runner's default Xcode version (16.4), which is older than the Xcode 26.3 minimum in Bitcoin Core's
doc/dependencies.mdand in the CI job there.Select Xcode 26.3, as Bitcoin Core's own CI does. See: bitcoin/bitcoin#36287.