diff options
author | Ayke van Laethem <[email protected]> | 2018-11-29 13:31:16 +0100 |
---|---|---|
committer | Ayke van Laethem <[email protected]> | 2018-12-10 15:38:02 +0100 |
commit | ecf6ffa62ed45791362952caffefeffea4d96ed7 (patch) | |
tree | 068c79020c0c746a48ab1a4557aedb49686b18b4 /target.go | |
parent | b99bbc880a154d2e8df153ae3da25c153f09cf87 (diff) | |
download | tinygo-ecf6ffa62ed45791362952caffefeffea4d96ed7.tar.gz tinygo-ecf6ffa62ed45791362952caffefeffea4d96ed7.zip |
all: add bare-bones Cgo support
Diffstat (limited to 'target.go')
-rw-r--r-- | target.go | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -155,6 +155,7 @@ func LoadTarget(target string) (*TargetSpec, error) { *spec = TargetSpec{ Triple: target, BuildTags: []string{runtime.GOOS, runtime.GOARCH}, + Compiler: commands["clang"], Linker: "cc", LDFlags: []string{"-no-pie"}, // WARNING: clang < 5.0 requires -nopie Objcopy: "objcopy", |