Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

superenv: filter out /usr/local on ARM if necessary #10198

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 5 additions & 0 deletions Library/Homebrew/shims/super/cc
Expand Up @@ -249,6 +249,11 @@ class Cmd
elsif path.start_with?("/opt/local", "/opt/boxen/homebrew", "/opt/X11", "/sw", "/usr/X11")
# ignore MacPorts, Boxen's Homebrew, X11, fink
false
elsif prefix != "/usr/local" && path.start_with?("/usr/local")
# ignore things in /usr/local if Homebrew is in another prefix;
# on macOS, this probably means that the user is on ARM and has an Intel
# Homebrew in /usr/local
false
elsif mac?
true
else
Expand Down