Commit 9602dd5e authored by Shenghou Ma's avatar Shenghou Ma

cmd/cgo: support Linux/ARM

        Part 3 of CL 5601044 (cgo: Linux/ARM support)

R=golang-dev, dave, rsc
CC=golang-dev
https://golang.org/cl/5991066
parent 5cffce61
......@@ -730,13 +730,15 @@ func (p *Package) gccName() (ret string) {
return
}
// gccMachine returns the gcc -m flag to use, either "-m32" or "-m64".
// gccMachine returns the gcc -m flag to use, either "-m32", "-m64" or "-marm".
func (p *Package) gccMachine() []string {
switch goarch {
case "amd64":
return []string{"-m64"}
case "386":
return []string{"-m32"}
case "arm":
return []string{"-marm"} // not thumb
}
return nil
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment