Skip to content

Commit 9d1a286

Browse files
committed
Merge bitcoin/bitcoin#29934: doc: add LLVM instruction for macOS < 13
2257404 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 2257404 TheCharlatan: ACK 2257404 Tree-SHA512: 5b4bcc71966d1da84bc4da32da89e0dea9f519f37d9e14e169140c92af044b33f404f01ae7d10f53ab5345dd51ac404c161389efef93da5cacbfd52a43881695
2 parents 59b773f + 2257404 commit 9d1a286

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

doc/build-osx.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,20 @@ To install, run the following from your terminal:
5151
brew install automake libtool boost pkg-config libevent
5252
```
5353

54+
For macOS 11 (Big Sur) and 12 (Monterey) you need to install a more recent version of llvm.
55+
56+
``` bash
57+
brew install llvm
58+
```
59+
60+
And append the following to the configure commands below:
61+
62+
``` bash
63+
CC=$(brew --prefix llvm)/bin/clang CXX=$(brew --prefix llvm)/bin/clang++
64+
```
65+
66+
Try `llvm@17` if compilation fails with the default version of llvm.
67+
5468
### 4. Clone Bitcoin repository
5569

5670
`git` should already be installed by default on your system.

0 commit comments

Comments
 (0)