aboutsummaryrefslogtreecommitdiffstats
path: root/build/ci.go
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2017-02-13 21:03:16 +0800
committerGitHub <noreply@github.com>2017-02-13 21:03:16 +0800
commitf8f428cc18c5f70814d7b3937128781bac14bffd (patch)
treed93d285d2ec22bd8ed646695c3db116c69fa3329 /build/ci.go
parente23e86921b55cb1ee2fca6b6fb9ed91f5532f9fd (diff)
parente99c788155ddd754c73d2c81b6051dcbd42e6575 (diff)
downloadgo-tangerine-f8f428cc18c5f70814d7b3937128781bac14bffd.tar
go-tangerine-f8f428cc18c5f70814d7b3937128781bac14bffd.tar.gz
go-tangerine-f8f428cc18c5f70814d7b3937128781bac14bffd.tar.bz2
go-tangerine-f8f428cc18c5f70814d7b3937128781bac14bffd.tar.lz
go-tangerine-f8f428cc18c5f70814d7b3937128781bac14bffd.tar.xz
go-tangerine-f8f428cc18c5f70814d7b3937128781bac14bffd.tar.zst
go-tangerine-f8f428cc18c5f70814d7b3937128781bac14bffd.zip
Merge pull request #3592 from karalabe/hw-wallets
accounts: initial support for Ledger hardware wallets
Diffstat (limited to 'build/ci.go')
-rw-r--r--build/ci.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/build/ci.go b/build/ci.go
index 51540f9b6..d8c76567c 100644
--- a/build/ci.go
+++ b/build/ci.go
@@ -236,6 +236,14 @@ func goToolArch(arch string, subcmd string, args ...string) *exec.Cmd {
gocmd := filepath.Join(runtime.GOROOT(), "bin", "go")
cmd := exec.Command(gocmd, subcmd)
cmd.Args = append(cmd.Args, args...)
+
+ if subcmd == "build" || subcmd == "install" || subcmd == "test" {
+ // Go CGO has a Windows linker error prior to 1.8 (https://github.com/golang/go/issues/8756).
+ // Work around issue by allowing multiple definitions for <1.8 builds.
+ if runtime.GOOS == "windows" && runtime.Version() < "go1.8" {
+ cmd.Args = append(cmd.Args, []string{"-ldflags", "-extldflags -Wl,--allow-multiple-definition"}...)
+ }
+ }
cmd.Env = []string{
"GO15VENDOREXPERIMENT=1",
"GOPATH=" + build.GOPATH(),