Skip to content

Commit 9ad2296

Browse files
aykevldeadprogram
authored andcommitted
guides/build: update to LLVM 15
1 parent 16cce69 commit 9ad2296

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

content/docs/guides/build.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,29 +49,29 @@ For **Debian** or **Ubuntu** you can install LLVM by adding a new apt repository
4949
| Debian | sid | `unstable`|
5050

5151
```shell
52-
echo 'deb http://apt.llvm.org/xxxxx/ llvm-toolchain-xxxxx-14 main' | sudo tee /etc/apt/sources.list.d/llvm.list
52+
echo 'deb http://apt.llvm.org/xxxxx/ llvm-toolchain-xxxxx-15 main' | sudo tee /etc/apt/sources.list.d/llvm.list
5353
```
5454

5555
After adding the apt repository for your distribution you may install the LLVM toolchain packages:
5656

5757
```shell
5858
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
5959
sudo apt-get update
60-
sudo apt-get install clang-14 llvm-14-dev lld-14 libclang-14-dev
60+
sudo apt-get install clang-15 llvm-15-dev lld-15 libclang-15-dev
6161
```
6262

6363
For **MacOS**, you can install LLVM through [Homebrew](https://formulae.brew.sh/formula/llvm). The Clang/LLVM version from Apple is not supported by TinyGo.
6464

6565
```shell
66-
brew install llvm@14
66+
brew install llvm@15
6767
```
6868

6969
For **Fedora** users you configure the go-llvm module before installing the remaining dependencies
7070
```shell
7171
sudo dnf install llvm-devel golang-tinygo-x-llvm-devel lld-libs lld
7272
git clone https://github.com/tinygo-org/go-llvm.git
7373
cd go-llvm
74-
make config VERSION=14 SRCDIR=/usr/include/llvm/ BUILDIR=/usr/bin/llvm/
74+
make config VERSION=15 SRCDIR=/usr/include/llvm/ BUILDIR=/usr/bin/llvm/
7575
go install
7676
```
7777

0 commit comments

Comments
 (0)