aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorMisty De Meo2013-09-17 09:00:09 -0700
committerMisty De Meo2013-09-17 09:00:48 -0700
commit9e80d57525783f0f9031455dce811601d01b9367 (patch)
treecb1bd2536ce07d9d73a6b972cc35f04128db5f47 /Library/Formula
parent8c49ea337de604966491ff7530e73d3491f4e42d (diff)
downloadhomebrew-9e80d57525783f0f9031455dce811601d01b9367.tar.bz2
go: fails_with :clang when cross-compiling
These fails_with conditions are getting far too complex and probably should be simplified. Fixes #22610.
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/go.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/Library/Formula/go.rb b/Library/Formula/go.rb
index 0cb64ebbc..66a9bd737 100644
--- a/Library/Formula/go.rb
+++ b/Library/Formula/go.rb
@@ -21,6 +21,11 @@ class Go < Formula
fails_with :clang do
cause "clang: error: no such file or directory: 'libgcc.a'"
end
+ elsif build.include?('cross-compile-all') || build.include?('cross-compile-common')
+ fails_with :clang do
+ cause "error: no case matching constant switch condition '53' [-Werror]
+ switch(thechar){"
+ end
end
def install