build: Bump Xcode CLT minimum supported version to 26.3 #36287

Manually merged
maflcko merged 1 commit from 2609-clt-bump into master 2026-10-21 15:46:29 +00:00 AGit
maflcko commented 2026-09-17 13:00:04 +00:00 (Migrated from github.com)

Now that macOS 14 is EOL (https://en.wikipedia.org/wiki/MacOS_Sonoma), it seems odd to still support native Xcode CLT builds on it.

(macOS Sonoma 14.8.9 received its final security update on 06 Aug 2026: https://support.apple.com/en-us/100100)

This patch will only be released in version 33.x, another 6 months out from now. Also, depends builds (and thus release builds) are unaffected. Affected devs or users are free to build via brew, nix, etc...

This is mostly needed to get an equivalent of llvm-19-ish via CLT, see https://en.wikipedia.org/wiki/Xcode#Toolchain_versions. Specifically, it will allow to use C++20 CTAD and also allow switching the project to C++23.

Now that macOS 14 is EOL (https://en.wikipedia.org/wiki/MacOS_Sonoma), it seems odd to still support native Xcode CLT builds on it. (macOS Sonoma 14.8.9 received its final security update on 06 Aug 2026: https://support.apple.com/en-us/100100) This patch will only be released in version 33.x, another 6 months out from now. Also, depends builds (and thus release builds) are unaffected. Affected devs or users are free to build via brew, nix, etc... This is mostly needed to get an equivalent of llvm-19-ish via CLT, see https://en.wikipedia.org/wiki/Xcode#Toolchain_versions. Specifically, it will allow to use C++20 CTAD and also allow switching the project to C++23.
DrahtBot commented 2026-09-17 13:00:19 +00:00 (Migrated from github.com)

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.

Type Reviewers
ACK l0rinc, hebasto
Concept ACK fanquake

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

Conflicts

Reviewers, this pull request conflicts with the following ones:

  • #36042 (build: Bump g++ minimum supported version to 13 by maflcko)
  • #31507 (build: Use clang-cl to build on Windows natively by hebasto)

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.

<!--e57a25ab6845829454e8d69fc972939a--> The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. <!--006a51241073e994b41acfe9ec718e94--> ### External sites * Code coverage & benchmarks: https://corecheck.dev/bitcoin/bitcoin/pulls/36287 * Ralph review <img src=https://review.fish.foo/assets/bitcoin/bitcoin/36287.png alt="Ralph review status"> https://git.fish.foo/bitcoin/bitcoin/pulls/36287#author-ralph <!--021abf342d371248e50ceaed478a90ca--> ### Reviews See [the guideline](https://github.com/bitcoin/bitcoin/blob/master/CONTRIBUTING.md#code-review) and [AI policy](https://github.com/bitcoin/bitcoin/blob/master/doc/AI_POLICY.md) for information on the review process. | Type | Reviewers | | ---- | --------- | | ACK | [l0rinc](https://github.com/bitcoin/bitcoin/pull/36287#pullrequestreview-5590670863), [hebasto](https://github.com/bitcoin/bitcoin/pull/36287#pullrequestreview-5595813474) | | Concept ACK | [fanquake](https://github.com/bitcoin/bitcoin/pull/36287#issuecomment-5743404362) | If your review is incorrectly listed, please copy-paste <code>&lt;!--meta-tag:bot-skip--&gt;</code> into the comment that the bot should ignore. <!--174a7506f384e20aa4161008e828411d--> ### Conflicts Reviewers, this pull request conflicts with the following ones: * [#36042](https://github.com/bitcoin/bitcoin/pull/36042) <sub><img src="https://drahtbot.space/ack_count/bitcoin/bitcoin/36042.svg"></sub> (build: Bump g++ minimum supported version to 13 by maflcko) * [#31507](https://github.com/bitcoin/bitcoin/pull/31507) <sub><img src="https://drahtbot.space/ack_count/bitcoin/bitcoin/31507.svg"></sub> (build: Use clang-cl to build on Windows natively by hebasto) 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. <!--5faf32d7da4f0f540f40219e4f7537a3-->
fanquake commented 2026-09-19 16:16:10 +00:00 (Migrated from github.com)

Concept ACK

Concept ACK
First-time contributor

Base: 09e22fbbb0caafbd2167657c2a8d409ae435b2cc
Head: fa0df9d336e80d37eab5f08b170a3255f287060c

No verified findings are available from this partial review.

Review coverage was incomplete. The archaeology review had incomplete evidence.

Full review report

<!-- forgejo-review-bot:bitcoin/bitcoin --> Base: `09e22fbbb0caafbd2167657c2a8d409ae435b2cc` Head: `fa0df9d336e80d37eab5f08b170a3255f287060c` No verified findings are available from this partial review. Review coverage was incomplete. The archaeology review had incomplete evidence. [Full review report](<https://review.fish.foo/traces/36287-fa0df9d336e80d37eab5f08b170a3255f287060c-409-1.html>)
hebasto (Migrated from github.com) reviewed 2026-10-20 12:18:35 +00:00
hebasto (Migrated from github.com) left a comment

Concept ACK.

Concept ACK.
maflcko commented 2026-10-20 12:23:20 +00:00 (Migrated from github.com)

cc @Sjors (or anyone else who is using xcode)

cc @Sjors (or anyone else who is using xcode)
Sjors commented 2026-10-20 12:48:15 +00:00 (Migrated from github.com)

Requiring a modern version of Xcode for native macOS builds is fine by me. My current version of (full) Xcode is 27.0.

Xcode 26.3 requires macOS 15.6 according to the table you shared, which works on reasonably old devices according to Wikipedia (e.g. a 2018 MacBook Pro).

Requiring a modern version of Xcode for native macOS builds is fine by me. My current version of (full) Xcode is 27.0. Xcode 26.3 requires macOS 15.6 according to the table you shared, which works on reasonably old devices according to [Wikipedia](https://en.wikipedia.org/wiki/MacOS_Sequoia) (e.g. a 2018 MacBook Pro).
l0rinc (Migrated from github.com) approved these changes 2026-10-20 20:27:32 +00:00
l0rinc (Migrated from github.com) left a comment

ACK fa0df9d336

I’ve been building with Xcode 26.6 for several months and am fine with retiring older toolchains.

ACK fa0df9d336e80d37eab5f08b170a3255f287060c I’ve been building with Xcode 26.6 for several months and am fine with retiring older toolchains.
l0rinc (Migrated from github.com) commented 2026-10-20 19:39:10 +00:00

Could we mention the macOS 15.6+ build requirement mentioned by @Sjors?

Could we mention the macOS 15.6+ build requirement mentioned by @Sjors?
l0rinc (Migrated from github.com) commented 2026-10-20 20:24:03 +00:00

Could we also explain why release builds retain macOS 14 support, given the EOL status mentioned in the description?

Could we also explain why [release builds retain macOS 14 support](https://github.com/bitcoin/bitcoin/blob/fa0df9d336e80d37eab5f08b170a3255f287060c/depends/hosts/darwin.mk#L1), given the EOL status mentioned in the description?
Sjors (Migrated from github.com) reviewed 2026-10-21 04:01:21 +00:00
Sjors (Migrated from github.com) commented 2026-10-21 04:01:21 +00:00

It might be possible to use an older version of macOS and install llvm via Homebrew.

It might be possible to use an older version of macOS and install llvm via Homebrew.
maflcko (Migrated from github.com) reviewed 2026-10-21 05:23:10 +00:00
maflcko (Migrated from github.com) commented 2026-10-21 05:23:10 +00:00

I didn't want to touch those this time. The changes here are required to bump to clang-19-ish. Bumping release builds is a separate discussion. If there is need to, someone can submit that. However, testing should be done to confirm such a change (ref https://github.com/bitcoin/bitcoin/pull/33489#issuecomment-3350089468).

I didn't want to touch those this time. The changes here are required to bump to clang-19-ish. Bumping release builds is a separate discussion. If there is need to, someone can submit that. However, testing should be done to confirm such a change (ref https://github.com/bitcoin/bitcoin/pull/33489#issuecomment-3350089468).
maflcko (Migrated from github.com) reviewed 2026-10-21 05:23:13 +00:00
maflcko (Migrated from github.com) commented 2026-10-21 05:23:13 +00:00

https://developer.apple.com/documentation/xcode-release-notes/xcode-26_3-release-notes also say "Xcode 26.3 requires a Mac running macOS Sequoia 15.6 or later."

So it seems fine to leave as-is. Also, it seems unrelated.

https://developer.apple.com/documentation/xcode-release-notes/xcode-26_3-release-notes also say "Xcode 26.3 requires a Mac running macOS Sequoia 15.6 or later." So it seems fine to leave as-is. Also, it seems unrelated.
l0rinc (Migrated from github.com) reviewed 2026-10-21 05:43:15 +00:00
l0rinc (Migrated from github.com) commented 2026-10-21 05:43:15 +00:00

Thanks for clarifying

Thanks for clarifying
maflcko (Migrated from github.com) reviewed 2026-10-21 05:59:33 +00:00
maflcko (Migrated from github.com) commented 2026-10-21 05:59:33 +00:00

A good date to touch the macos-cross release builds could be Q1/Q2 2027, maybe with an SDK bump to the latest point release at that time. But my preference would be to do it when there is a good reason.

A good date to touch the macos-cross release builds could be Q1/Q2 2027, maybe with an SDK bump to the latest point release at that time. But my preference would be to do it when there is a good reason.
hebasto (Migrated from github.com) approved these changes 2026-10-21 06:36:41 +00:00
hebasto (Migrated from github.com) left a comment

ACK fa0df9d336.

Xcode 26.3 still supports Intel-based Macs.

ACK fa0df9d336e80d37eab5f08b170a3255f287060c. Xcode 26.3 still supports Intel-based Macs.
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
bitcoin/bitcoin!36287
No description provided.