go: Update to 1.11.1 (#4570)

* go: Update to 1.11.1 --no patchs required

* Ooops, forget prepare windows build environment.
This commit is contained in:
dynamicer
2018-10-21 14:47:26 +08:00
committed by Алексей
parent 975efd5a7f
commit 8600a7e048

View File

@@ -60,6 +60,15 @@ build() {
export GO_CFLAGS="-D__USE_MINGW_ANSI_STDIO=1"
export CFLAGS="-D__USE_MINGW_ANSI_STDIO=1"
export GO_BUILD_VERBOSE=1
# Prepare create origin windows build environment
mkdir -p "${GOROOT_BOOTSTRAP}"/bin
del_file_exists \
"${GOROOT_BOOTSTRAP}"/bin/go.exe \
"${GOROOT_BOOTSTRAP}"/bin/gofmt.exe
ln -s ../../../bin/go.exe "${GOROOT_BOOTSTRAP}"/bin/go.exe
ln -s ../../../bin/gofmt.exe "${GOROOT_BOOTSTRAP}"/bin/gofmt.exe
# I have no idea why we need this to be run from a completely seperate
# MSDOS shell, but it does. Without this, the build exits with no info
# about what went wrong.
@@ -68,6 +77,9 @@ build() {
/tmp/bootstrap_go.bat
# ./make.bat
# Clean prepare, maybe it could be dangerous.
# rm -fr "${GOROOT_BOOTSTRAP}"/bin
}
package() {