mirror of https://github.com/istio/istio.io.git
Automator: update common-files@master in istio/istio.io@master (#8065)
This commit is contained in:
parent
59ebec040b
commit
061328e7c8
|
@ -1 +1 @@
|
|||
2cc19b6f07436b757115472d54be4668edd622e3
|
||||
456ab8021b32c0bc25c638991448cfc54e06de39
|
||||
|
|
|
@ -78,14 +78,14 @@ if [[ "${minimum_go_version}" != $(echo -e "${minimum_go_version}\n${go_version[
|
|||
echo "Warning: Detected that you are using an older version of the Go compiler. Istio requires ${minimum_go_version} or greater."
|
||||
fi
|
||||
|
||||
OPTIMIZATION_FLAGS="-trimpath"
|
||||
OPTIMIZATION_FLAGS=(-trimpath)
|
||||
if [ "${DEBUG}" == "1" ]; then
|
||||
OPTIMIZATION_FLAGS=""
|
||||
OPTIMIZATION_FLAGS=()
|
||||
fi
|
||||
|
||||
time GOOS=${BUILD_GOOS} GOARCH=${BUILD_GOARCH} ${GOBINARY} build \
|
||||
${V} "${GOBUILDFLAGS_ARRAY[@]}" ${GCFLAGS:+-gcflags "${GCFLAGS}"} \
|
||||
-o "${OUT}" \
|
||||
"${OPTIMIZATION_FLAGS}" \
|
||||
"${OPTIMIZATION_FLAGS[@]}" \
|
||||
-pkgdir="${GOPKG}/${BUILD_GOOS}_${BUILD_GOARCH}" \
|
||||
-ldflags "${LDFLAGS} ${LD_EXTRAFLAGS}" "${@}"
|
||||
|
|
Loading…
Reference in New Issue