From 1781f01d289b0a0dee6396a47b1fb7388f83f4ac Mon Sep 17 00:00:00 2001 From: Dustin Rodrigues Date: Tue, 27 Apr 2021 00:09:31 -0400 Subject: [PATCH 1/2] man: allow to run on Apple Silicon --- Library/Homebrew/dev-cmd/man.rb | 7 ------- 1 file changed, 7 deletions(-) diff --git a/Library/Homebrew/dev-cmd/man.rb b/Library/Homebrew/dev-cmd/man.rb index 3d15f07424..22d65ede3b 100644 --- a/Library/Homebrew/dev-cmd/man.rb +++ b/Library/Homebrew/dev-cmd/man.rb @@ -21,8 +21,6 @@ module Homebrew 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. "\ @@ -34,11 +32,6 @@ module Homebrew 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 From 68246e48c7e39118ff768a395e1443f9f9092fe2 Mon Sep 17 00:00:00 2001 From: Dustin Rodrigues Date: Tue, 27 Apr 2021 00:09:45 -0400 Subject: [PATCH 2/2] prof: allow to run on Apple Silicon --- Library/Homebrew/dev-cmd/prof.rb | 4 ---- 1 file changed, 4 deletions(-) diff --git a/Library/Homebrew/dev-cmd/prof.rb b/Library/Homebrew/dev-cmd/prof.rb index e1e67c2bc3..0d49f551a5 100644 --- a/Library/Homebrew/dev-cmd/prof.rb +++ b/Library/Homebrew/dev-cmd/prof.rb @@ -13,8 +13,6 @@ module Homebrew 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)." @@ -24,8 +22,6 @@ module Homebrew 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