Skip to content

Commit 8c7b4c7

Browse files
ZauberNerddeadprogram
authored andcommitted
Update build from source instructions to llvm 13
Tinygo bumped the default llvm version to v13 in: tinygo-org/tinygo@3a4e0c9 Also, cgo is enabled by default, no need to set the env variable.
1 parent d1d2c74 commit 8c7b4c7

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

content/docs/guides/build.md

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

5050
```shell
51-
echo 'deb http://apt.llvm.org/xxxxx/ llvm-toolchain-xxxxx-11 main' | sudo tee /etc/apt/sources.list.d/llvm.list
51+
echo 'deb http://apt.llvm.org/xxxxx/ llvm-toolchain-xxxxx-13 main' | sudo tee /etc/apt/sources.list.d/llvm.list
5252
```
5353

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

5656
```
5757
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
5858
sudo apt-get update
59-
sudo apt-get install clang-11 llvm-11-dev lld-11 libclang-11-dev
59+
sudo apt-get install clang-13 llvm-13-dev lld-13 libclang-13-dev
6060
```
6161

6262
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.
6363

6464
```shell
65-
brew install llvm@11
65+
brew install llvm@13
6666
```
6767

68-
After LLVM has been installed, installing TinyGo should be as easy as running the following command (cgo must be enabled so that the compile does not fail):
68+
After LLVM has been installed, installing TinyGo should be as easy as running the following command:
6969

7070
```shell
71-
CGO_ENABLED=1 go install
71+
go install
7272
```
7373

7474

0 commit comments

Comments
 (0)