Skip to content

Commit 04d4d2a

Browse files
biohazduckdeadprogram
authored andcommitted
fix minor bugs
1 parent 78ce109 commit 04d4d2a

File tree

3 files changed

+39
-4
lines changed

3 files changed

+39
-4
lines changed

content/docs/guides/selfbuild/_index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ 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-
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 above show how to install LLVM one way or the other.
10+
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.
1111

1212
### Repository cloning (before build)
1313
Start with getting the source code. On Windows, you might want to install the [build dependencies](#build-dependencies) first.
@@ -29,4 +29,4 @@ Once the branch is selected, pull submodules:
2929
git submodule update --init
3030
```
3131

32-
Now you are ready to build TinyGo- but you must choose whether to build with a [manual LLVM install](./manual-llvm.md) or with a [system installed LLVM](./byollvm.md). See the links above.
32+
Now you are ready to build TinyGo- but you must choose whether to build with a [manual LLVM install](./manual-llvm) or with a [system installed LLVM](./byollvm). See the links below.
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
---
2+
title: "Additional requirements"
3+
weight: 4
4+
description: >
5+
Build a development version of TinyGo from source if you want to help improve TinyGo or want to try the latest features.
6+
---
7+
8+
We're not done yet. Some extra things need to be built before you can start using TinyGo.
9+
10+
If you haven't already, you need to download llvm-project (for the compiler-rt sources that are needed for most architectures):
11+
12+
```shell
13+
make llvm-source
14+
```
15+
16+
To be able to use TinyGo on a bare-metal target, you need to generate some files first:
17+
18+
```shell
19+
make gen-device
20+
```
21+
22+
To be able to use TinyGo to build WebAssembly binaries, you will need to compile [wasi-libc](https://github.com/WebAssembly/wasi-libc) and [Binaryen](https://github.com/WebAssembly/binaryen):
23+
24+
```shell
25+
make wasi-libc
26+
make binaryen
27+
```
28+
29+
These command may need to be re-run after some updates in TinyGo.
30+
31+
There are also some extra tools you will need to install, depending on your operating system. These tools are gcc-avr, avr-libc, avrdude, and openocd. Check the additional requirements for your operating system:
32+
33+
* [Linux](/getting-started/install/linux/)
34+
* [MacOS](/getting-started/install/macos/)
35+
* [Windows](/getting-started/install/windows/)

content/docs/guides/selfbuild/byollvm.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
---
22
title: "Build with system-installed LLVM"
3-
weight: 4
3+
weight: 3
44
description: >
55
How to build TinyGo with a system-installed version of LLVM.
66
---
77

8-
⚠️ Halt! This is the system installed LLVM guide! Please check the following table and make sure you don't need the [manual LLVM install guide](./manual-llvm.md) instead!
8+
⚠️ Halt! This is the system installed LLVM guide! Please check the following table and make sure you don't need the [manual LLVM install guide](./manual-llvm) instead!
99

1010

1111
| You need to build LLVM manually in the following cases |

0 commit comments

Comments
 (0)