diff options
author | merge-script <fanquake@gmail.com> | 2024-05-02 15:27:25 +0800 |
---|---|---|
committer | merge-script <fanquake@gmail.com> | 2024-05-02 15:27:25 +0800 |
commit | 9d1a286f20b8a602ffe72928bcd79be09fdbf9d0 (patch) | |
tree | a054f0e6a2fe4d46a2f1c79e474eb9df1761d7e4 | |
parent | 59b773f42a6730104e13904fb521e52023a997b5 (diff) | |
parent | 22574046c90c0662f3aa9b1baea074aff54f92a9 (diff) | |
download | bitcoin-9d1a286f20b8a602ffe72928bcd79be09fdbf9d0.tar.xz |
Merge bitcoin/bitcoin#29934: doc: add LLVM instruction for macOS < 13
22574046c90c0662f3aa9b1baea074aff54f92a9 doc: add LLVM instruction for macOS < 13 (Sjors Provoost)
Pull request description:
#29208 bumped clang to 14, which users of old macOS versions need to install manually. This PR adds instructions.
Xcode 14.3.1 ships clang 14.0.3 (14.0.0 is broken, see #29918):
https://en.wikipedia.org/wiki/Xcode#Xcode_11.0_-_14.x_(since_SwiftUI_framework)
The system requirements for that is macOS Ventura 13.0 or later: https://developer.apple.com/documentation/xcode-release-notes/xcode-14_3_1-release-notes#
Homebrew itself officially supports macOS 12 or later, but _may_ still work on macOS 11: https://docs.brew.sh/Installation
Fwiw macOS 11 Big Sur last got an update in September 2023, so Apple has not _entirely_ written it off: https://en.wikipedia.org/wiki/MacOS_Big_Sur
ACKs for top commit:
maflcko:
utACK 22574046c90c0662f3aa9b1baea074aff54f92a9
TheCharlatan:
ACK 22574046c90c0662f3aa9b1baea074aff54f92a9
Tree-SHA512: 5b4bcc71966d1da84bc4da32da89e0dea9f519f37d9e14e169140c92af044b33f404f01ae7d10f53ab5345dd51ac404c161389efef93da5cacbfd52a43881695
-rw-r--r-- | doc/build-osx.md | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/doc/build-osx.md b/doc/build-osx.md index 5c3dc1ac7f..20c92ab7a4 100644 --- a/doc/build-osx.md +++ b/doc/build-osx.md @@ -51,6 +51,20 @@ To install, run the following from your terminal: brew install automake libtool boost pkg-config libevent ``` +For macOS 11 (Big Sur) and 12 (Monterey) you need to install a more recent version of llvm. + +``` bash +brew install llvm +``` + +And append the following to the configure commands below: + +``` bash +CC=$(brew --prefix llvm)/bin/clang CXX=$(brew --prefix llvm)/bin/clang++ +``` + +Try `llvm@17` if compilation fails with the default version of llvm. + ### 4. Clone Bitcoin repository `git` should already be installed by default on your system. |