diff --git a/Library/Homebrew/formula_creator.rb b/Library/Homebrew/formula_creator.rb index b9653b676..bca36922c 100644 --- a/Library/Homebrew/formula_creator.rb +++ b/Library/Homebrew/formula_creator.rb @@ -166,7 +166,7 @@ module Homebrew system "shards", "build", "--release" bin.install "bin/#{name}" <% elsif mode == :go %> - system "go", "build", *std_go_args + system "go", "build", *std_go_args(ldflags: "-s -w") <% elsif mode == :meson %> mkdir "build" do system "meson", *std_meson_args, ".."