Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Matthew Finkel
tor-browser-build
Commits
83407b9e
Unverified
Commit
83407b9e
authored
Sep 11, 2017
by
boklm
Browse files
Bug 23456: build go for Windows 64
parent
0292709b
Changes
2
Hide whitespace changes
Inline
Side-by-side
projects/go/build
View file @
83407b9e
...
...
@@ -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
-%
]
...
...
projects/go/config
View file @
83407b9e
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment