aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorSjors Provoost <sjors@sprovoost.nl>2024-04-29 10:33:21 +0200
committerSjors Provoost <sjors@sprovoost.nl>2024-04-29 10:33:21 +0200
commit22574046c90c0662f3aa9b1baea074aff54f92a9 (patch)
tree6ccf26ef40df744fbddaae5dd5df2c1f0f935e01 /doc
parenta46065e36cf868265c909dc5edf29dc17be53c1f (diff)
downloadbitcoin-22574046c90c0662f3aa9b1baea074aff54f92a9.tar.xz
doc: add LLVM instruction for macOS < 13
Diffstat (limited to 'doc')
-rw-r--r--doc/build-osx.md14
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.