From 0457bfc47d73c716f69dac7bbb920fba77f639dd Mon Sep 17 00:00:00 2001 From: FX Coudert Date: Sat, 15 Dec 2018 08:40:22 +0100 Subject: [PATCH] go@1.4: remove options --- Formula/go@1.4.rb | 40 ++++------------------------------------ 1 file changed, 4 insertions(+), 36 deletions(-) diff --git a/Formula/go@1.4.rb b/Formula/go@1.4.rb index 5b0ac0dbe3..327c0b3cb0 100644 --- a/Formula/go@1.4.rb +++ b/Formula/go@1.4.rb @@ -14,9 +14,6 @@ class GoAT14 < Formula keg_only :versioned_formula - option "with-cc-all", "Build with cross-compilers and runtime support for all supported platforms" - option "with-cc-common", "Build with cross-compilers and runtime support for darwin, linux and windows" - resource "gotools" do url "https://go.googlesource.com/tools.git", :branch => "release-branch.go1.4" @@ -25,40 +22,11 @@ class GoAT14 < Formula def install ENV.refurbish_args - # host platform (darwin) must come last in the targets list - if build.with? "cc-all" - targets = [ - ["linux", ["386", "amd64", "arm"]], - ["freebsd", ["386", "amd64", "arm"]], - ["netbsd", ["386", "amd64", "arm"]], - ["openbsd", ["386", "amd64"]], - ["windows", ["386", "amd64"]], - ["dragonfly", ["386", "amd64"]], - ["plan9", ["386", "amd64"]], - ["solaris", ["amd64"]], - ["darwin", ["386", "amd64"]], - ] - elsif build.with? "cc-common" - targets = [ - ["linux", ["386", "amd64", "arm"]], - ["windows", ["386", "amd64"]], - ["darwin", ["386", "amd64"]], - ] - else - targets = [["darwin", [""]]] - end - cd "src" do - targets.each do |os, archs| - archs.each do |arch| - ENV["GOROOT_FINAL"] = libexec - ENV["GOOS"] = os - ENV["GOARCH"] = arch - ENV["CGO_ENABLED"] = "0" - ohai "Building go for #{arch}-#{os}" - system "./make.bash", "--no-clean" - end - end + ENV["GOROOT_FINAL"] = libexec + ENV["GOOS"] = "darwin" + ENV["CGO_ENABLED"] = "0" + system "./make.bash", "--no-clean" end (buildpath/"pkg/obj").rmtree