dev-cmd/prof: prevent from running on Apple Silicon
This commit is contained in:
parent
f14ed4987f
commit
511fcee1d7
@ -13,6 +13,8 @@ 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)."
|
||||||
@ -22,6 +24,8 @@ 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