dev-cmd/create: use std_configure_args

This commit is contained in:
lexicol 2021-03-06 13:13:58 -08:00 committed by GitHub
parent a930e2b362
commit 3d391d6427
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -156,10 +156,7 @@ module Homebrew
system "cmake", ".", *std_cmake_args system "cmake", ".", *std_cmake_args
<% elsif mode == :autotools %> <% elsif mode == :autotools %>
# Remove unrecognized options if warned by configure # Remove unrecognized options if warned by configure
system "./configure", "--disable-debug", system "./configure", *std_configure_args, "--disable-silent-rules"
"--disable-dependency-tracking",
"--disable-silent-rules",
"--prefix=\#{prefix}"
<% elsif mode == :crystal %> <% elsif mode == :crystal %>
system "shards", "build", "--release" system "shards", "build", "--release"
bin.install "bin/#{name}" bin.install "bin/#{name}"
@ -206,10 +203,7 @@ module Homebrew
system "cargo", "install", *std_cargo_args system "cargo", "install", *std_cargo_args
<% else %> <% else %>
# Remove unrecognized options if warned by configure # Remove unrecognized options if warned by configure
system "./configure", "--disable-debug", system "./configure", *std_configure_args, "--disable-silent-rules"
"--disable-dependency-tracking",
"--disable-silent-rules",
"--prefix=\#{prefix}"
# system "cmake", ".", *std_cmake_args # system "cmake", ".", *std_cmake_args
<% end %> <% end %>
<% if mode == :autotools || mode == :cmake %> <% if mode == :autotools || mode == :cmake %>