diff options
| author | Mike McQuaid | 2013-10-12 21:59:51 +0100 |
|---|---|---|
| committer | Mike McQuaid | 2013-10-12 21:59:51 +0100 |
| commit | 686af5aa8e16b60dfef8d17a7c31d49cf0d76598 (patch) | |
| tree | 0ccdf38a2dd5012cbf3c0407bbf9f0a060a4455d | |
| parent | badc807de9fc2006c891d45df00a37040105986f (diff) | |
| download | homebrew-686af5aa8e16b60dfef8d17a7c31d49cf0d76598.tar.bz2 | |
go: fix cgo clang support in devel.
Closes #23001.
Closes #23139.
References #23119.
| -rw-r--r-- | Library/Formula/go.rb | 3 |
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' |
