diff options
| author | Mike McQuaid | 2017-01-07 09:52:01 +0000 | 
|---|---|---|
| committer | GitHub | 2017-01-07 09:52:01 +0000 | 
| commit | f814ee87fbfd6434393bd3e606194eaad96d82e6 (patch) | |
| tree | 293686536b768b70ee4ec01a1fef93a5d839f8d0 | |
| parent | 1c710adb44cfaa53c3f2b051dcd68c406709dd85 (diff) | |
| download | brew-f814ee87fbfd6434393bd3e606194eaad96d82e6.tar.bz2 | |
Revert "cc: always filter flags on deps."
| -rwxr-xr-x | Library/Homebrew/shims/super/cc | 9 | 
1 files changed, 9 insertions, 0 deletions
diff --git a/Library/Homebrew/shims/super/cc b/Library/Homebrew/shims/super/cc index 1400788ba..b0ea705e8 100755 --- a/Library/Homebrew/shims/super/cc +++ b/Library/Homebrew/shims/super/cc @@ -206,6 +206,10 @@ class Cmd    end    def keep?(path) +    # The logic in this method will eventually become the default, +    # but is currently opt-in. +    return keep_orig?(path) unless ENV["HOMEBREW_EXPERIMENTAL_FILTER_FLAGS_ON_DEPS"] +      # Allow references to self      if formula_prefix && path.start_with?("#{formula_prefix}/")        true @@ -222,6 +226,11 @@ class Cmd      end    end +  # The original less-smart version of keep_orig; will eventually be removed +  def keep_orig?(path) +    path.start_with?(prefix, cellar, tmpdir) || !path.start_with?("/opt/local", "/opt/boxen/homebrew", "/opt/X11", "/sw", "/usr/X11") +  end +    def cflags      args = []  | 
