From 5f5ac7aa5c59df270c2f04060ec8a8a4892d4f01 Mon Sep 17 00:00:00 2001 From: Max Howell Date: Mon, 2 Sep 2013 22:20:38 -0500 Subject: Go builds with clang, without cgo module --- Library/Formula/go.rb | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'Library') diff --git a/Library/Formula/go.rb b/Library/Formula/go.rb index 0abe8b50e..2df21c511 100644 --- a/Library/Formula/go.rb +++ b/Library/Formula/go.rb @@ -14,16 +14,17 @@ class Go < Formula option 'cross-compile-common', "Build the cross-compilers and runtime support for darwin, linux and windows" option 'without-cgo', "Build without cgo" - fails_with :clang do - cause "clang: error: no such file or directory: 'libgcc.a'" - end - def install # install the completion scripts bash_completion.install 'misc/bash/go' => 'go-completion.bash' zsh_completion.install 'misc/zsh/go' => 'go' - cgo = build.with? 'cgo' + cgo = if ENV.cc == :clang + # this module cannot build with clang… yet. + false + else + build.with? 'cgo' + end if build.include? 'cross-compile-all' targets = [ -- cgit v1.2.3