aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorMike McQuaid2013-10-12 21:59:51 +0100
committerMike McQuaid2013-10-12 21:59:51 +0100
commit686af5aa8e16b60dfef8d17a7c31d49cf0d76598 (patch)
tree0ccdf38a2dd5012cbf3c0407bbf9f0a060a4455d /Library/Formula
parentbadc807de9fc2006c891d45df00a37040105986f (diff)
downloadhomebrew-686af5aa8e16b60dfef8d17a7c31d49cf0d76598.tar.bz2
go: fix cgo clang support in devel.
Closes #23001. Closes #23139. References #23119.
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/go.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/Library/Formula/go.rb b/Library/Formula/go.rb
index 8da5f440d..ea70d163d 100644
--- a/Library/Formula/go.rb
+++ b/Library/Formula/go.rb
@@ -37,6 +37,9 @@ class Go < Formula
def patches; DATA; end unless build.devel?
def install
+ # For Clang cgo support Go needs to be able to tell through CC.
+ ENV['CC'] = 'clang' if build.devel? and ENV.compiler == :clang
+
# install the completion scripts
bash_completion.install 'misc/bash/go' => 'go-completion.bash'
zsh_completion.install 'misc/zsh/go' => 'go'