From 686af5aa8e16b60dfef8d17a7c31d49cf0d76598 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Sat, 12 Oct 2013 21:59:51 +0100 Subject: go: fix cgo clang support in devel. Closes #23001. Closes #23139. References #23119.--- Library/Formula/go.rb | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Library') 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' -- cgit v1.2.3