mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-21 04:49:04 +00:00
Use Clang as CGo compiler
This commit is contained in:
@@ -1106,6 +1106,8 @@ func main() {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
os.Setenv("CC", "clang -target=" + *target)
|
||||||
|
|
||||||
err := Compile(flag.Args()[0], *outpath, *target, *printIR)
|
err := Compile(flag.Args()[0], *outpath, *target, *printIR)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
fmt.Fprintln(os.Stderr, "error:", err)
|
fmt.Fprintln(os.Stderr, "error:", err)
|
||||||
|
|||||||
Reference in New Issue
Block a user