diff options
| author | Max Howell | 2009-09-04 15:42:19 +0100 |
|---|---|---|
| committer | Max Howell | 2009-09-04 15:54:27 +0100 |
| commit | 2142e1823f16fa8b35dc04a280004e9adeda2c30 (patch) | |
| tree | dbb57443057747a6b74567c1cb990c2d2ee3dd6b /bin | |
| parent | 6685200998bf24f7028c3244b0f028be3bd30df2 (diff) | |
| download | homebrew-2142e1823f16fa8b35dc04a280004e9adeda2c30.tar.bz2 | |
Fixes #30 -- GCC can't create executables
The fix is to error out if GCC isn't installed, and to ensure we aren't
setting CC and CXX to something that doesn't exist.
Diffstat (limited to 'bin')
| -rwxr-xr-x | bin/brew | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -75,13 +75,18 @@ begin exit 0 end + require 'brewkit' + if ARGV.verbose? - require 'brewkit' ohai "Build Environment" %w[CFLAGS LDFLAGS CPPFLAGS MAKEFLAGS CC CXX].each do |f| puts "#{f}: #{ENV[f]}" unless ENV[f].to_s.empty? end end + + unless system "which #{ENV['CC'] or 'cc'} &> /dev/null" and $?.success? + raise "We cannot find a c compiler, have you installed the latest Xcode?" + end # we need to ensure a pristine ENV for each process or the formula # will start with the ENV from the previous build |
