Skip to content
Browse files

--env: show HOMEBREW_CC in superenv

Closes #18247.
  • Loading branch information...
1 parent 7cfc41d commit 98c5b964542a282f5e4fb0cc07f6cb24f29b534a @adamv adamv committed
Showing with 8 additions and 1 deletion.
  1. +8 −1 Library/Homebrew/cmd/--env.rb
View
9 Library/Homebrew/cmd/--env.rb
@@ -19,7 +19,10 @@ def __env
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 @@ def build_env_keys env
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'

0 comments on commit 98c5b96

Please sign in to comment.
Something went wrong with that request. Please try again.