Skip to content

Commit

Permalink
Merge pull request #11256 from dtrodrigues/man-prof-silicon
Browse files Browse the repository at this point in the history
Allow man and prof Apple Silicon
  • Loading branch information
MikeMcQuaid committed Apr 27, 2021
2 parents 43643d2 + 68246e4 commit 9680801
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 11 deletions.
7 changes: 0 additions & 7 deletions Library/Homebrew/dev-cmd/man.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ def man_args
Homebrew::CLI::Parser.new do
description <<~EOS
Generate Homebrew's manpages.
*Note:* Not (yet) working on Apple Silicon.
EOS
switch "--fail-if-not-changed",
description: "Return a failing status code if no changes are detected in the manpage outputs. "\
Expand All @@ -34,11 +32,6 @@ def man_args
end

def man
# TODO: update description above if removing this.
if !ENV["HOMEBREW_SILICON_DEVELOPER"] && Hardware::CPU.arm?
raise UsageError, "not (yet) working on Apple Silicon!"
end

args = man_args.parse

Commands.rebuild_internal_commands_completion_list
Expand Down
4 changes: 0 additions & 4 deletions Library/Homebrew/dev-cmd/prof.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ def prof_args
Homebrew::CLI::Parser.new do
description <<~EOS
Run Homebrew with a Ruby profiler. For example, `brew prof readall`.
*Note:* Not (yet) working on Apple Silicon.
EOS
switch "--stackprof",
description: "Use `stackprof` instead of `ruby-prof` (the default)."
Expand All @@ -24,8 +22,6 @@ def prof_args
end

def prof
raise UsageError, "not (yet) working on Apple Silicon!" if Hardware::CPU.arm?

args = prof_args.parse

brew_rb = (HOMEBREW_LIBRARY_PATH/"brew.rb").resolved_path
Expand Down

0 comments on commit 9680801

Please sign in to comment.