Skip to content

Commit

Permalink
Update gcflags moving it into std_go_args
Browse files Browse the repository at this point in the history
Closes #92.

Signed-off-by: ⑆ Neveda β‘ˆ <[email protected]>
  • Loading branch information
Neved4 committed Oct 25, 2024
1 parent ae88514 commit c066317
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion Formula/gotwc.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,10 @@ class Gotwc < Formula

def install
system "go", "build",
*std_go_args(ldflags: "-w -s"), "-gcflags=all=-l -B -wb=false"
*std_go_args(
ldflags: "-w -s",
gcflags: "all=-l -B -wb=false",
)
doc.install "README.md"
end

Expand Down
5 changes: 4 additions & 1 deletion Formula/nomore403.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,10 @@ class Nomore403 < Formula

def install
system "go", "build",
*std_go_args(ldflags: "-w -s"), "-gcflags=all=-l -B -wb=false"
*std_go_args(
ldflags: "-w -s",
gcflags: "all=-l -B -wb=false",
)
doc.install "README.md"
end
end

0 comments on commit c066317

Please sign in to comment.