瀏覽代碼

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

release: build binary without symbols for debug
Xiang Li 9 年之前
父節點
當前提交
e95b571e7c
共有 1 個文件被更改,包括 1 次插入1 次删除
  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}"