all: replace dep with Go modules

We've moved to go modules, and keeping both working is burdensome.
In fact, I think dep already wasn't working.
This commit is contained in:
Ayke van Laethem
2019-08-18 18:03:47 +02:00
committed by Ron Evans
parent 02c4020228
commit 8d959b7c63
5 changed files with 37 additions and 97 deletions
+7 -4
View File
@@ -16,7 +16,6 @@ LLVM, Clang and LLD are quite light on dependencies, requiring only standard
build tools to be built. Go is of course necessary to build TinyGo itself.
* Go (1.11+)
* [dep](https://golang.github.io/dep/)
* Standard build tools (gcc/clang)
* git
* CMake
@@ -28,15 +27,19 @@ on a different system like Mac.
## Download the source
The first step is to download the TinyGo sources (use `--recursive` if you clone
the git repository). Then, inside the directory, perform these steps:
the git repository). Then, inside the directory, download the LLVM source:
dep ensure -vendor-only # download Go dependencies
make llvm-source # download LLVM
make llvm-source
You can also store LLVM outside of the TinyGo root directory by setting the
`LLVM_BUILDDIR`, `CLANG_SRC` and `LLD_SRC` make variables, but that is not
covered by this guide.
TinyGo uses Go modules, so if you clone TinyGo inside your GOPATH (and are using
Go below 1.13), make sure that Go modules are enabled:
export GO111MODULE=on
## Build LLVM, Clang, LLD
Before starting the build, you may want to set the following environment