From b9be9bb71c19500989a2b83f55ecd192f0509a92 Mon Sep 17 00:00:00 2001 From: Dawid Dziurla Date: Wed, 15 Jan 2020 12:33:55 +0100 Subject: [PATCH] formula: add std_go_args --- Library/Homebrew/formula.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb index 29e613fdd3..80eb373512 100644 --- a/Library/Homebrew/formula.rb +++ b/Library/Homebrew/formula.rb @@ -1338,6 +1338,11 @@ class Formula args end + # Standard parameters for Go builds. + def std_go_args + ["-trimpath", "-o", bin/name] + end + # an array of all core {Formula} names # @private def self.core_names