diff options
| author | Adam Vandenberg | 2013-05-02 11:36:30 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2013-05-02 11:36:30 -0700 |
| commit | afd2dde47495d04bc9aeafc32fe8b39515f6563e (patch) | |
| tree | 6ec97c5450c9804ce19b1b2efbc4bd64182d7ff0 /Library | |
| parent | 070758689b2872051a56e9d01f582ab4d32b8f83 (diff) | |
| download | brew-afd2dde47495d04bc9aeafc32fe8b39515f6563e.tar.bz2 | |
--env: show HOMEBREW_CC in superenv
Closes Homebrew/homebrew#18247.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/cmd/--env.rb | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/--env.rb b/Library/Homebrew/cmd/--env.rb index 770740c0f..67b38d0fe 100644 --- a/Library/Homebrew/cmd/--env.rb +++ b/Library/Homebrew/cmd/--env.rb @@ -19,7 +19,10 @@ module Homebrew extend self end def build_env_keys env - %w[ CC CXX LD CFLAGS CXXFLAGS CPPFLAGS LDFLAGS SDKROOT MAKEFLAGS + %w[ + CC CXX LD + HOMEBREW_CC + CFLAGS CXXFLAGS CPPFLAGS LDFLAGS SDKROOT MAKEFLAGS CMAKE_PREFIX_PATH CMAKE_INCLUDE_PATH CMAKE_LIBRARY_PATH CMAKE_FRAMEWORK_PATH MACOSX_DEPLOYMENT_TARGET PKG_CONFIG_PATH PKG_CONFIG_LIBDIR HOMEBREW_DEBUG HOMEBREW_MAKE_JOBS HOMEBREW_VERBOSE HOMEBREW_USE_CLANG @@ -31,6 +34,10 @@ module Homebrew extend self def dump_build_env env build_env_keys(env).each do |key| + case key when 'CC', 'CXX' + next + end if superenv? + value = env[key] print "#{key}: #{value}" case key when 'CC', 'CXX', 'LD' |
