aboutsummaryrefslogtreecommitdiffstats
path: root/Library/ENV
diff options
context:
space:
mode:
authorMax Howell2012-08-28 19:29:10 -0400
committerMax Howell2012-08-29 12:41:37 -0400
commit6fca47ae5f2d0dc989098b9165d5cd0099e300a7 (patch)
treeae09aac743e5fc04ad812e4e58b14474123d3d17 /Library/ENV
parent5e13bc0bbfab5e60ecc78f817fc48eae2d0f30e2 (diff)
downloadhomebrew-6fca47ae5f2d0dc989098b9165d5cd0099e300a7.tar.bz2
Warn user if they set CFLAGS, etc. with superenv
Since we remove some CFLAGS under their noses, this would otherwise be quite confusing. Notably, this will now trigger in numerous formula. Sucks.
Diffstat (limited to 'Library/ENV')
-rwxr-xr-xLibrary/ENV/4.3/cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/Library/ENV/4.3/cc b/Library/ENV/4.3/cc
index 8673c7527..2342dc51e 100755
--- a/Library/ENV/4.3/cc
+++ b/Library/ENV/4.3/cc
@@ -135,6 +135,10 @@ end
####################################################################### sanity
abort "The build-tool has reset ENV. --lame-env required." unless ENV['HOMEBREW_BREW_FILE']
+%w{CPPFLAGS LDFLAGS CXXFLAGS CFLAGS}.each do |flag|
+ puts "#{flag} set but superenv running! Flags may be removed!" if ENV[flag]
+end
+
######################################################################### main
cmd = Cmd.new($0, ARGV)
exec "xcrun", cmd.tool, *cmd.args