Unverified Commit 83407b9e authored by boklm's avatar boklm
Browse files

Bug 23456: build go for Windows 64

parent 0292709b
......@@ -64,11 +64,11 @@ cd /var/tmp/dist/go/src
# https://github.com/golang/go/issues/15457
CC_FOR_TARGET="$(pwd)/cc-for-target"
echo "#!/bin/sh" > "$CC_FOR_TARGET"
echo "exec i686-w64-mingw32-gcc [% c("var/CFLAGS") %] [% c("var/LDFLAGS") %] \"\$@\"" >> "$CC_FOR_TARGET"
echo "exec [% c("arch") %]-w64-mingw32-gcc [% c("var/CFLAGS") %] [% c("var/LDFLAGS") %] \"\$@\"" >> "$CC_FOR_TARGET"
chmod +x "$CC_FOR_TARGET"
# http://golang.org/doc/install/source#environment
export GOOS=windows
export GOARCH=386
export GOARCH=[% c("var/GOARCH") %]
CGO_ENABLED=1 CC_FOR_TARGET="$CC_FOR_TARGET" CC= CFLAGS= LDFLAGS= ./make.bash
[% END -%]
......
......@@ -52,10 +52,15 @@ var:
}) %]
targets:
windows-i686:
windows:
var:
GOOS: windows
windows-i686:
var:
GOARCH: 386
windows-x86_64:
var:
GOARCH: amd64
osx-x86_64:
var:
GOOS: darwin
......
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