Skip to content

ci: build Bitcoin Core with its minimum Xcode version on macOS - #402

Merged
ryanofsky merged 1 commit into
bitcoin-core:masterfrom
nullfail:bump-xcode-version-macos-core-job
Dec 1, 2026
Merged

ryanofsky merged 1 commit into
bitcoin-core:masterfrom
nullfail:bump-xcode-version-macos-core-job

Conversation

@nullfail

@nullfail nullfail commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

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.md and in the CI job there.

Select Xcode 26.3, as Bitcoin Core's own CI does. See: bitcoin/bitcoin#36287.

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.
@DrahtBot

DrahtBot commented Nov 27, 2026 •

Copy link
Copy Markdown

The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

Reviews

See the guideline and AI policy for information on the review process.

Type Reviewers
ACK maflcko, hebasto, ryanofsky

If your review is incorrectly listed, please copy-paste <!--meta-tag:bot-skip--> into the comment that the bot should ignore.

Conflicts

No conflicts as of last run.

@maflcko

maflcko commented Nov 27, 2026

Copy link
Copy Markdown
Contributor

lgtm, but as you say, this won't fix the stop_token issue: https://godbolt.org/z/75T5dafzb

@maflcko

maflcko commented Nov 27, 2026

Copy link
Copy Markdown
Contributor

lgtm ACK 1b47a0a

@hebasto hebasto left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK 1b47a0a.

@nullfail

Copy link
Copy Markdown
Contributor Author

Thanks for the reviews!

lgtm, but as you say, this won't fix the stop_token issue: https://godbolt.org/z/75T5dafzb

It actually fixes it. The SDK shipped with Xcode 26.3 provides libc++ 20.1, in which std::stop_token is supported without -fexperimental-library.

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.

@maflcko

maflcko commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

Ugh, so xcode 26.3 is apple clang 17, which is ~ clang 19, but they included ~ libc++-20

Couldn't be more confusing ...

@maflcko

maflcko commented Nov 27, 2026

Copy link
Copy Markdown
Contributor

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?

@nullfail

Copy link
Copy Markdown
Contributor Author

Yes, I'm working on an approach that keeps std::stop_token out of clientInvoke right now, since I also think it's too early to bump clang.

@ryanofsky ryanofsky left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code review ACK 1b47a0a. This PR doesn't do what it was originally trying to do, which was to make std::stop_token available for #342. But matching Bitcoin Core's CI may be beneficial anyway.

Comment on lines +68 to +70
# Use the minimum Xcode version denoted in Bitcoin Core's
# doc/dependencies.md, instead of the runner's default.
xcode: '26.3'

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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_token out of clientInvoke right 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.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@ryanofsky
ryanofsky merged commit c481d88 into bitcoin-core:master Dec 1, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants