]> Cypherpunks repositories - gostls13.git/commit
cmd/cgo: add support for GOARCH=riscv64
authorTobias Klauser <tklauser@distanz.ch>
Mon, 30 Apr 2018 07:02:14 +0000 (09:02 +0200)
committerBrad Fitzpatrick <bradfitz@golang.org>
Mon, 30 Apr 2018 16:39:36 +0000 (16:39 +0000)
commit3334eee400ad4dc202f53d3efa34fddb013f9c17
treeaf0f41a23f6057e84ca0ebcf10d505f090d7d285
parent78219ab3fe7618ba2079f5f72ac228452c44aff8
cmd/cgo: add support for GOARCH=riscv64

Even though GOARCH=riscv64 is not supported by gc yet, it is easy
to make cmd/cgo already support it.

Together with the changes in debug/elf in CL 107339 this e.g. allows
to generate Go type definitions for linux/riscv64 in the
golang.org/x/sys/unix package without using gccgo.

Change-Id: I6b849df2ddac56c8c483eb03d56009669ca36973
Reviewed-on: https://go-review.googlesource.com/110066
Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/cmd/cgo/main.go