Skip to content

Commit 450c80d

Browse files
soypatdeadprogram
authored andcommitted
add @TuteMthCD's suggestions
1 parent a53fff5 commit 450c80d

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

content/docs/guides/selfbuild/_index.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ description: >
77

88
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).
99

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+
1012
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.
1113

1214
### Repository cloning (before build)

content/docs/guides/selfbuild/manual-llvm.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,4 +81,12 @@ tinygo version 0.31.0-dev-d4189fec linux/amd64 (using go version go1.21.4 and LL
8181

8282
You have successfully built TinyGo from source. Congratulations!
8383

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+
8492
If you have gotten this far, please refer to [Additional requirements](./additional-requirements) to further set up TinyGo.

0 commit comments

Comments
 (0)