You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
64
64
65
65
```shell
66
-
brew install llvm@15
66
+
brew install llvm
67
67
```
68
68
69
69
For **Fedora** users you can install LLVM from the repository. Note that the version of LLVM [varies by Fedora version](https://packages.fedoraproject.org/pkgs/llvm/llvm-libs/), for example Fedora 37 has LLVM 15.
@@ -90,7 +90,7 @@ If you are getting a build error like this, LLVM is not installed as expected:
90
90
1 error generated.
91
91
```
92
92
93
-
This can often be fixed by specifying the LLVM version as a build tag, for example `-tags=llvm14` if you have LLVM 14 instead of LLVM 15.
93
+
This can often be fixed by specifying the LLVM version as a build tag, for example `-tags=llvm14` if you have LLVM 14 instead of LLVM 16.
94
94
95
95
Note that you should not use `make` when you want to build using a system-installed LLVM, just use the Go toolchain. `make` is used when you want to use a self-built LLVM, as in the next section.
96
96
@@ -163,7 +163,7 @@ This results in a `tinygo` binary in the `build` directory:
163
163
164
164
```shell
165
165
$ ./build/tinygo version
166
-
tinygo version 0.29.0 linux/amd64 (using go version go1.21 and LLVM version 15.0.0)
166
+
tinygo version 0.30.0 linux/amd64 (using go version go1.21 and LLVM version 16.0.0)
167
167
```
168
168
169
169
You have successfully built TinyGo from source. Congratulations!
Copy file name to clipboardExpand all lines: content/docs/guides/webassembly/wasm.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -62,13 +62,13 @@ Note the `--no-debug` flag, which reduces the size of the final binary by removi
62
62
debug symbols from the output. Also note that you must change the path to your Wasm file from `/go/src/github.com/myuser/myrepo/wasm-main.go` to whatever the actual path to your file is:
Copy file name to clipboardExpand all lines: content/getting-started/install/linux.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -30,15 +30,15 @@ You must have Go already installed on your machine in order to install TinyGo. W
30
30
If you are using Ubuntu or another Debian based Linux on an Intel processor, download the DEB file from Github and install it using the following commands:
You will need to ensure that the path to the `tinygo` executable file is in your `PATH` variable.
@@ -51,7 +51,7 @@ You can test that the installation is working properly by running this code whic
51
51
52
52
```shell
53
53
$ tinygo version
54
-
tinygo version 0.29.0 linux/amd64 (using go version go1.21 and LLVM version 15.0.0)
54
+
tinygo version 0.30.0 linux/amd64 (using go version go1.21 and LLVM version 16.0.0)
55
55
```
56
56
57
57
If you are on a 64 bit ARM OS, and running tinygo fails with "no such file or directory", you may need to install the 32 bit C++ runtime library, e.g.:
Copy file name to clipboardExpand all lines: content/getting-started/install/macos.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,18 +20,18 @@ brew install tinygo
20
20
21
21
### Alternative installation
22
22
23
-
Download [this](https://github.com/tinygo-org/tinygo/releases/download/v0.29.0/tinygo0.29.0.darwin-amd64.tar.gz) file. Then, run the following commands:
23
+
Download [this](https://github.com/tinygo-org/tinygo/releases/download/v0.30.0/tinygo0.30.0.darwin-amd64.tar.gz) file. Then, run the following commands:
24
24
25
25
```shell
26
-
tar xvzf tinygo-0.29.0.darwin-amd64.tar.gz
26
+
tar xvzf tinygo-0.30.0.darwin-amd64.tar.gz
27
27
export PATH=<extract location>/tinygo/bin:$PATH
28
28
```
29
29
30
30
You can test that the installation is working properly by running this code which should display the version number:
31
31
32
32
```shell
33
33
$ tinygo version
34
-
tinygo version 0.29.0 darwin/amd64 (using go version go1.21 and LLVM version 15.0.0)
34
+
tinygo version 0.30.0 darwin/amd64 (using go version go1.21 and LLVM version 16.0.0)
35
35
```
36
36
37
37
If you are only interested in compiling TinyGo code for WebAssembly then you are done with the installation.
0 commit comments