Merge pull request #16692 from Homebrew/deparallelize-only-autotools

This commit is contained in:
Patrick Linnane 2024-02-16 19:40:07 -08:00 committed by GitHub
commit 10c50c3287
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -157,12 +157,12 @@ module Homebrew
<% end %>
def install
# ENV.deparallelize # if your formula fails when building in parallel
<% if @mode == :cmake %>
system "cmake", "-S", ".", "-B", "build", *std_cmake_args
system "cmake", "--build", "build"
system "cmake", "--install", "build"
<% elsif @mode == :autotools %>
# ENV.deparallelize # if your formula fails when building in parallel
# Remove unrecognized options if they cause configure to fail
# https://rubydoc.brew.sh/Formula.html#std_configure_args-instance_method
system "./configure", "--disable-silent-rules", *std_configure_args