compiler: pass -cflags and -ldflags to tinygo CLI command

Signed-off-by: Ron Evans <ron@hybridgroup.com>
This commit is contained in:
Ron Evans
2018-12-11 10:37:27 +01:00
committed by Ayke van Laethem
parent 8734732d0c
commit cb648d8ae1
2 changed files with 20 additions and 1 deletions
+2 -1
View File
@@ -32,7 +32,8 @@ func init() {
type Config struct {
Triple string // LLVM target triple, e.g. x86_64-unknown-linux-gnu (empty string means default)
GC string // garbage collection strategy
CFlags []string // flags to pass to cgo
CFlags []string // cflags to pass to cgo
LDFlags []string // ldflags to pass to cgo
DumpSSA bool // dump Go SSA, for compiler debugging
Debug bool // add debug symbols for gdb
RootDir string // GOROOT for TinyGo