diff options
author | Ayke van Laethem <[email protected]> | 2021-03-12 16:47:08 +0100 |
---|---|---|
committer | Ron Evans <[email protected]> | 2021-04-05 20:52:04 +0200 |
commit | fb03787b73ff62f4dcab767e8f10d19f4e747c8d (patch) | |
tree | aafa4b14bc1b25f928e868bdd3dc3693225b32cd /Makefile | |
parent | 83a949647f57316ba3de8136ec9793541291d0e1 (diff) | |
download | tinygo-fb03787b73ff62f4dcab767e8f10d19f4e747c8d.tar.gz tinygo-fb03787b73ff62f4dcab767e8f10d19f4e747c8d.zip |
builder: cache C and assembly file outputs
This probably won't speed up the build on multicore systems (the build
is still dominated by the whole-program optimization step) but should be
useful at a later date for other optimizations. For example, I intend to
eventually optimize each package individually including C files, which
should enable cross-language optimizations (inlining C functions into Go
functions, for example). For that to work, accurate dependency tracking
is important.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -180,7 +180,7 @@ tinygo: CGO_CPPFLAGS="$(CGO_CPPFLAGS)" CGO_CXXFLAGS="$(CGO_CXXFLAGS)" CGO_LDFLAGS="$(CGO_LDFLAGS)" $(GO) build -buildmode exe -o build/tinygo$(EXE) -tags byollvm -ldflags="-X main.gitSha1=`git rev-parse --short HEAD`" . test: wasi-libc - CGO_CPPFLAGS="$(CGO_CPPFLAGS)" CGO_CXXFLAGS="$(CGO_CXXFLAGS)" CGO_LDFLAGS="$(CGO_LDFLAGS)" $(GO) test -v -buildmode exe -tags byollvm ./cgo ./compileopts ./compiler ./interp ./transform . + CGO_CPPFLAGS="$(CGO_CPPFLAGS)" CGO_CXXFLAGS="$(CGO_CXXFLAGS)" CGO_LDFLAGS="$(CGO_LDFLAGS)" $(GO) test -v -buildmode exe -tags byollvm ./builder ./cgo ./compileopts ./compiler ./interp ./transform . # Test known-working standard library packages. # TODO: do this in one command, parallelize, and only show failing tests (no |