Merge pull request #11256 from dtrodrigues/man-prof-silicon
Allow man and prof Apple Silicon
This commit is contained in:
commit
9680801712
@ -21,8 +21,6 @@ module Homebrew
|
|||||||
Homebrew::CLI::Parser.new do
|
Homebrew::CLI::Parser.new do
|
||||||
description <<~EOS
|
description <<~EOS
|
||||||
Generate Homebrew's manpages.
|
Generate Homebrew's manpages.
|
||||||
|
|
||||||
*Note:* Not (yet) working on Apple Silicon.
|
|
||||||
EOS
|
EOS
|
||||||
switch "--fail-if-not-changed",
|
switch "--fail-if-not-changed",
|
||||||
description: "Return a failing status code if no changes are detected in the manpage outputs. "\
|
description: "Return a failing status code if no changes are detected in the manpage outputs. "\
|
||||||
@ -34,11 +32,6 @@ module Homebrew
|
|||||||
end
|
end
|
||||||
|
|
||||||
def man
|
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
|
args = man_args.parse
|
||||||
|
|
||||||
Commands.rebuild_internal_commands_completion_list
|
Commands.rebuild_internal_commands_completion_list
|
||||||
|
|||||||
@ -13,8 +13,6 @@ module Homebrew
|
|||||||
Homebrew::CLI::Parser.new do
|
Homebrew::CLI::Parser.new do
|
||||||
description <<~EOS
|
description <<~EOS
|
||||||
Run Homebrew with a Ruby profiler. For example, `brew prof readall`.
|
Run Homebrew with a Ruby profiler. For example, `brew prof readall`.
|
||||||
|
|
||||||
*Note:* Not (yet) working on Apple Silicon.
|
|
||||||
EOS
|
EOS
|
||||||
switch "--stackprof",
|
switch "--stackprof",
|
||||||
description: "Use `stackprof` instead of `ruby-prof` (the default)."
|
description: "Use `stackprof` instead of `ruby-prof` (the default)."
|
||||||
@ -24,8 +22,6 @@ module Homebrew
|
|||||||
end
|
end
|
||||||
|
|
||||||
def prof
|
def prof
|
||||||
raise UsageError, "not (yet) working on Apple Silicon!" if Hardware::CPU.arm?
|
|
||||||
|
|
||||||
args = prof_args.parse
|
args = prof_args.parse
|
||||||
|
|
||||||
brew_rb = (HOMEBREW_LIBRARY_PATH/"brew.rb").resolved_path
|
brew_rb = (HOMEBREW_LIBRARY_PATH/"brew.rb").resolved_path
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user