Browse Source

Use Clang as CGo compiler

pull/6/head
Ayke van Laethem 7 years ago
parent
commit
51b947956f
  1. 2
      tgo.go

2
tgo.go

@ -1106,6 +1106,8 @@ func main() {
return
}
os.Setenv("CC", "clang -target=" + *target)
err := Compile(flag.Args()[0], *outpath, *target, *printIR)
if err != nil {
fmt.Fprintln(os.Stderr, "error:", err)

Loading…
Cancel
Save