Skip to content

Commit

Permalink
scc: update go build
Browse files Browse the repository at this point in the history
Signed-off-by: Rui Chen <[email protected]>
  • Loading branch information
chenrui333 committed Dec 4, 2024
1 parent bf76423 commit b633903
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Formula/s/scc.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,12 @@ class Scc < Formula
depends_on "go" => :build

def install
system "go", "build", *std_go_args
system "go", "build", *std_go_args(ldflags: "-s -w")
end

test do
assert_match version.to_s, shell_output("#{bin}/scc --version")

(testpath/"test.c").write <<~C
#include <stdio.h>
int main(void) {
Expand Down

0 comments on commit b633903

Please sign in to comment.