Skip to content

Commit 2257404

Browse files
committed
doc: add LLVM instruction for macOS < 13
1 parent a46065e commit 2257404

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)