aboutsummaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2018-03-20 00:13:54 +0800
committerGitHub <noreply@github.com>2018-03-20 00:13:54 +0800
commit1203c6a237cb87b78ec495772cecb178200499ce (patch)
treea51e6c3a24e43f265fc5c9b4f2bdb7ff7de6a8db /build
parent0965761a45562d609f6036963dbac84561174677 (diff)
downloadgo-tangerine-1203c6a237cb87b78ec495772cecb178200499ce.tar
go-tangerine-1203c6a237cb87b78ec495772cecb178200499ce.tar.gz
go-tangerine-1203c6a237cb87b78ec495772cecb178200499ce.tar.bz2
go-tangerine-1203c6a237cb87b78ec495772cecb178200499ce.tar.lz
go-tangerine-1203c6a237cb87b78ec495772cecb178200499ce.tar.xz
go-tangerine-1203c6a237cb87b78ec495772cecb178200499ce.tar.zst
go-tangerine-1203c6a237cb87b78ec495772cecb178200499ce.zip
crypto/bn256: full switchover to cloudflare's code (#16301)
* crypto/bn256: full switchover to cloudflare's code * crypto/bn256: only use cloudflare for optimized architectures * crypto/bn256: upstream fallback for non-optimized code * .travis, build: drop support for Go 1.8 (need type aliases) * crypto/bn256/cloudflare: enable curve mul lattice optimization
Diffstat (limited to 'build')
-rw-r--r--build/ci.go16
1 files changed, 3 insertions, 13 deletions
diff --git a/build/ci.go b/build/ci.go
index 24b58c1ae..36b0e82ef 100644
--- a/build/ci.go
+++ b/build/ci.go
@@ -182,13 +182,13 @@ func doInstall(cmdline []string) {
// Check Go version. People regularly open issues about compilation
// failure with outdated Go. This should save them the trouble.
if !strings.Contains(runtime.Version(), "devel") {
- // Figure out the minor version number since we can't textually compare (1.10 < 1.8)
+ // Figure out the minor version number since we can't textually compare (1.10 < 1.9)
var minor int
fmt.Sscanf(strings.TrimPrefix(runtime.Version(), "go1."), "%d", &minor)
- if minor < 8 {
+ if minor < 9 {
log.Println("You have Go version", runtime.Version())
- log.Println("go-ethereum requires at least Go version 1.8 and cannot")
+ log.Println("go-ethereum requires at least Go version 1.9 and cannot")
log.Println("be compiled with an earlier version. Please upgrade your Go installation.")
os.Exit(1)
}
@@ -262,16 +262,6 @@ func goTool(subcmd string, args ...string) *exec.Cmd {
func goToolArch(arch string, cc string, subcmd string, args ...string) *exec.Cmd {
cmd := build.GoTool(subcmd, 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.
- var minor int
- fmt.Sscanf(strings.TrimPrefix(runtime.Version(), "go1."), "%d", &minor)
-
- if runtime.GOOS == "windows" && minor < 8 {
- cmd.Args = append(cmd.Args, []string{"-ldflags", "-extldflags -Wl,--allow-multiple-definition"}...)
- }
- }
cmd.Env = []string{"GOPATH=" + build.GOPATH()}
if arch == "" || arch == runtime.GOARCH {
cmd.Env = append(cmd.Env, "GOBIN="+GOBIN)