aboutsummaryrefslogtreecommitdiffhomepage
path: root/target.go
diff options
context:
space:
mode:
authorAyke van Laethem <[email protected]>2018-11-29 13:31:16 +0100
committerAyke van Laethem <[email protected]>2018-12-10 15:38:02 +0100
commitecf6ffa62ed45791362952caffefeffea4d96ed7 (patch)
tree068c79020c0c746a48ab1a4557aedb49686b18b4 /target.go
parentb99bbc880a154d2e8df153ae3da25c153f09cf87 (diff)
downloadtinygo-ecf6ffa62ed45791362952caffefeffea4d96ed7.tar.gz
tinygo-ecf6ffa62ed45791362952caffefeffea4d96ed7.zip
all: add bare-bones Cgo support
Diffstat (limited to 'target.go')
-rw-r--r--target.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/target.go b/target.go
index 117dac352..21286c3a5 100644
--- a/target.go
+++ b/target.go
@@ -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",