1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-06-20 14:35:23 +00:00

reduce binary size by stripping debug information

This commit is contained in:
V2Ray 2015-09-22 23:43:39 +02:00
parent 53eff7bb3e
commit db23bdfc20

View File

@ -18,7 +18,7 @@ function build {
fi
mkdir -p $REL_PATH/config
cp -R $GOPATH/src/github.com/v2ray/v2ray-core/release/config/* $REL_PATH/config/
GOOS=${GOOS} GOARCH=${GOARCH} go build -o ${TARGET} -compiler gc github.com/v2ray/v2ray-core/release/server
GOOS=${GOOS} GOARCH=${GOARCH} go build -o ${TARGET} -compiler gc -ldflags "-s" github.com/v2ray/v2ray-core/release/server
ZIP_FILE=$BIN_PATH/v2ray${SUFFIX}.zip
if [ -f $ZIP_FILE ]; then