Skip to content

Commit

Permalink
add -trimpath to build script
Browse files Browse the repository at this point in the history
  • Loading branch information
OneOfOne committed Nov 5, 2019
1 parent a70bd9b commit 8f0be54
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/xxhsum/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@

VERSION=$1

env GOOS=windows GOARCH=amd64 CGO_ENABLED=0 go build -ldflags "-s -w" -o xxhsum64-${VERSION}.exe || exit 1
env GOOS=windows GOARCH=386 CGO_ENABLED=0 go build -ldflags "-s -w" -o xxhsum32-${VERSION}.exe || exit 1
env GOOS=windows GOARCH=amd64 CGO_ENABLED=0 go build -trimpath -ldflags "-s -w" -o xxhsum64-${VERSION}.exe || exit 1
env GOOS=windows GOARCH=386 CGO_ENABLED=0 go build -trimpath -ldflags "-s -w" -o xxhsum32-${VERSION}.exe || exit 1

0 comments on commit 8f0be54

Please sign in to comment.