Explorar el Código

Merge pull request #6684 from gyuho/build-with-strip

release: build binary without symbols for debug
Xiang Li hace 10 años
padre
commit
e95b571e7c
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      scripts/build-binary

+ 1 - 1
scripts/build-binary

@@ -62,7 +62,7 @@ function main {
 		export GOARCH="amd64"
 		export GOARCH="amd64"
 
 
 		pushd etcd >/dev/null
 		pushd etcd >/dev/null
-			./build
+			GO_LDFLAGS="-s" ./build
 		popd >/dev/null
 		popd >/dev/null
 
 
 		TARGET="etcd-${VER}-${GOOS}-${GOARCH}"
 		TARGET="etcd-${VER}-${GOOS}-${GOARCH}"