Skip to content

Commit

Permalink
设置CGO_ENABLED=0
Browse files Browse the repository at this point in the history
  • Loading branch information
Dot-Liu committed Mar 9, 2023
1 parent 93dae41 commit aa441f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build/cmd/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ function buildApp(){
-X 'github.com/eolinker/apinto/utils/version.goVersion=$(go version)'
-X 'github.com/eolinker/apinto/utils/version.eoscVersion=${EOSC_VERSION}'"
echo -e "build $APP:go build -ldflags "-w -s $flags" -o ${OUTPATH}/$APP ${BasePath}/app/$APP"
go build -ldflags "-w -s $flags" -o ${OUTPATH}/$APP ${BasePath}/app/$APP
CGO_ENABLED=0 go build -ldflags "-w -s $flags" -o ${OUTPATH}/$APP ${BasePath}/app/$APP
# echo "build $APP:${buildCMD}"

# echo `${buildCMD}`
Expand Down

0 comments on commit aa441f9

Please sign in to comment.