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
Copy file name to clipboardExpand all lines: content/docs/guides/selfbuild/_index.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,6 +7,8 @@ description: >
7
7
8
8
This page details how to build TinyGo from source. If you would like to install a pre-built binary release, please see our [quick install guide](../../../getting-started/install).
9
9
10
+
You'll need [Go](https://go.dev) installed on your machine to build TinyGo. The Go team provides install documentation [here](https://go.dev/doc/install).
11
+
10
12
A major dependency of TinyGo is [LLVM](https://llvm.org/). You can either use a version of LLVM already on your system or build LLVM manually. Building manually takes a long time (around an hour depending on how fast your system is) so it is recommended to use a version of LLVM already on your system if that's possible. The links provided below show how to install LLVM one way or the other.
Copy file name to clipboardExpand all lines: content/docs/guides/selfbuild/manual-llvm.md
+8Lines changed: 8 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -81,4 +81,12 @@ tinygo version 0.31.0-dev-d4189fec linux/amd64 (using go version go1.21.4 and LL
81
81
82
82
You have successfully built TinyGo from source. Congratulations!
83
83
84
+
To run TinyGo from any directory you may want to move the built binary to a location on your path
85
+
or add the `./build` directory to your path. The following shell command moves the TinyGo binary to `/user/bin`. You may need root privileges to complete this step.
86
+
```shell
87
+
mv ./build/tinygo /usr/bin/
88
+
```
89
+
If you ran the above command, **uninstalling** TinyGo is as easy as running `rm /usr/bin/tinygo`.
90
+
91
+
84
92
If you have gotten this far, please refer to [Additional requirements](./additional-requirements) to further set up TinyGo.
0 commit comments