aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/extend/ENV/std.rb
diff options
context:
space:
mode:
authorJack Nagel2014-05-26 14:10:24 -0500
committerJack Nagel2014-05-26 14:10:24 -0500
commit6eb220d78f486c1795ea06fca3afa53755615527 (patch)
treeb9bcf7bcb803497c07d1d846a5b1a81e0d97cd07 /Library/Homebrew/extend/ENV/std.rb
parentf0bffe8043200deb23debe114170010a28d0c636 (diff)
downloadbrew-6eb220d78f486c1795ea06fca3afa53755615527.tar.bz2
Share code for sanitizing ENV between both build environments
Diffstat (limited to 'Library/Homebrew/extend/ENV/std.rb')
-rw-r--r--Library/Homebrew/extend/ENV/std.rb7
1 files changed, 1 insertions, 6 deletions
diff --git a/Library/Homebrew/extend/ENV/std.rb b/Library/Homebrew/extend/ENV/std.rb
index 9b1c6e369..f433e50bc 100644
--- a/Library/Homebrew/extend/ENV/std.rb
+++ b/Library/Homebrew/extend/ENV/std.rb
@@ -16,12 +16,7 @@ module Stdenv
end
def setup_build_environment(formula=nil)
- # Clear CDPATH to avoid make issues that depend on changing directories
- delete('CDPATH')
- delete('GREP_OPTIONS') # can break CMake (lol)
- delete('CLICOLOR_FORCE') # autotools doesn't like this
- %w{CPATH C_INCLUDE_PATH CPLUS_INCLUDE_PATH OBJC_INCLUDE_PATH}.each { |k| delete(k) }
- remove_cc_etc
+ reset
if MacOS.version >= :mountain_lion
# Mountain Lion's sed is stricter, and errors out when