From 8600a7e0486bbfee5c53b1522d8e9b417299e380 Mon Sep 17 00:00:00 2001 From: dynamicer Date: Sun, 21 Oct 2018 14:47:26 +0800 Subject: [PATCH] go: Update to 1.11.1 (#4570) * go: Update to 1.11.1 --no patchs required * Ooops, forget prepare windows build environment. --- mingw-w64-go/PKGBUILD | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/mingw-w64-go/PKGBUILD b/mingw-w64-go/PKGBUILD index be8ee27b3c..3565f842c6 100644 --- a/mingw-w64-go/PKGBUILD +++ b/mingw-w64-go/PKGBUILD @@ -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() {