aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/extend/ENV/shared.rb
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Homebrew/extend/ENV/shared.rb')
-rw-r--r--Library/Homebrew/extend/ENV/shared.rb16
1 files changed, 7 insertions, 9 deletions
diff --git a/Library/Homebrew/extend/ENV/shared.rb b/Library/Homebrew/extend/ENV/shared.rb
index 447e4dd29..909dc4f94 100644
--- a/Library/Homebrew/extend/ENV/shared.rb
+++ b/Library/Homebrew/extend/ENV/shared.rb
@@ -289,12 +289,11 @@ module SharedEnvExtension
EOS
end
- unless gcc_formula.opt_prefix.exist?
- raise <<-EOS.undent
- The requested Homebrew GCC was not installed. You must:
- brew install #{gcc_formula.full_name}
- EOS
- end
+ return if gcc_formula.opt_prefix.exist?
+ raise <<-EOS.undent
+ The requested Homebrew GCC was not installed. You must:
+ brew install #{gcc_formula.full_name}
+ EOS
end
def permit_arch_flags; end
@@ -328,9 +327,8 @@ module SharedEnvExtension
end
def check_for_compiler_universal_support
- if homebrew_cc =~ GNU_GCC_REGEXP
- raise "Non-Apple GCC can't build universal binaries"
- end
+ return unless homebrew_cc =~ GNU_GCC_REGEXP
+ raise "Non-Apple GCC can't build universal binaries"
end
def gcc_with_cxx11_support?(cc)