Skip to content

Commit

Permalink
fix: Build binaries without debug symbols
Browse files Browse the repository at this point in the history
  • Loading branch information
nadeesha committed Oct 25, 2021
1 parent 46df81a commit b4724c4
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 @@ -14,7 +14,7 @@ do
output_name+='.exe'
fi

env GOOS=$GOOS GOARCH=$GOARCH go build -o bin/$output_name $package
env GOOS=$GOOS GOARCH=$GOARCH go build -ldflags "-s -w" -o bin/$output_name $package
if [ $? -ne 0 ]; then
echo 'An error has occurred! Aborting the script execution...'
exit 1
Expand Down

0 comments on commit b4724c4

Please sign in to comment.