README: update build instructions

Этот коммит содержится в:
Ayke van Laethem 2018-09-13 00:23:45 +02:00
родитель 5e9e3bd1a0
коммит 7e7502a990
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: E97FF5335DFDFDED

Просмотреть файл

@ -114,11 +114,8 @@ You'll get an error like the following, this is expected:
^~~~~~~~~~~~~~~~~~~
1 error generated.
To continue, you'll need to build LLVM for Go. This will take about an hour and
require a fair bit of RAM. In fact, I would recommend setting your `ld` binary
to `gold` to speed up linking, especially on systems with less than 16GB RAM.
Also, I would recommend editing build.sh and set `cmake_flags` to:
To continue, you'll need to build LLVM. As a first step, modify
github.com/aykevl/llvm/bindings/go/build.sh:
```sh
cmake_flags="../../../../.. $@ -DLLVM_EXPERIMENTAL_TARGETS_TO_BUILD=AVR -DLLVM_LINK_LLVM_DYLIB=ON"
@ -129,6 +126,17 @@ make sure `tinygo` links to a shared library instead of a static library,
greatly improving link time on every rebuild. This is especially useful during
development.
The next step is actually building LLVM. This is done by running this command
inside github.com/aykevl/llvm/bindings/go:
```sh
$ ./build.sh
```
This will take about an hour and require a fair bit of RAM. In fact, I would
recommend setting your `ld` binary to `gold` to speed up linking, especially on
systems with less than 16GB RAM.
After LLVM has been built, you can run an example with:
make run-test