Replace MacOS.prefer_64_bit with Hardware::CPU.is_64_bit. (#134)

This commit is contained in:
Bardi Harborow 2019-05-02 00:50:40 +10:00 committed by Chris O'Haver
parent 9ebcb064fd
commit 5960d7facb

View file

@ -46,7 +46,7 @@ class Coredns < Formula
def install
ENV["GOPATH"] = buildpath
ENV["GOOS"] = "darwin"
ENV["GOARCH"] = MacOS.prefer_64_bit? ? "amd64" : "386"
ENV["GOARCH"] = Hardware::CPU.is_64_bit? ? "amd64" : "386"
(buildpath/"src/github.com/coredns/coredns").install buildpath.children
Language::Go.stage_deps resources, buildpath/"src"