build_dist.sh: add -trimpath
Saves 81KB (20320440 to 20238520 bytes for linux/amd64) Updates #1278 Change-Id: Id607480c76220c74c8854ef1a2459aee650ad7b6 Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
This commit is contained in:
committed by
Brad Fitzpatrick
parent
61751a0c9a
commit
73bbd7caca
+1
-1
@@ -57,4 +57,4 @@ while [ "$#" -gt 1 ]; do
|
|||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
exec $go build ${tags:+-tags=$tags} -ldflags "$ldflags" "$@"
|
exec $go build ${tags:+-tags=$tags} -trimpath -ldflags "$ldflags" "$@"
|
||||||
|
|||||||
Reference in New Issue
Block a user