Skip to content

Commit

Permalink
Add -s, -w ldflags
Browse files Browse the repository at this point in the history
  • Loading branch information
alebeck committed Dec 14, 2024
1 parent 37a2e33 commit d6bc63a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ dir=${1:-./bin}
mkdir -p $dir

go build \
-ldflags "-X main.version=$tag -X main.commit=$commit" \
-ldflags "-s -w -X main.version=$tag -X main.commit=$commit" \
-o $dir/boring \
./cmd/boring

0 comments on commit d6bc63a

Please sign in to comment.