Skip to content
Snippets Groups Projects
Commit 340000ce authored by Mike McQuaid's avatar Mike McQuaid Committed by GitHub
Browse files

Merge pull request #1746 from MikeMcQuaid/always-filter-flags-deps

cc: always filter flags on deps.
parents 4ca2eaf8 e4497a2b
No related branches found
No related tags found
No related merge requests found
......@@ -206,10 +206,6 @@ 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
......@@ -226,11 +222,6 @@ 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 = []
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment