Add Instructions on Downloading Mingw 64bit for Building memdb

This commit is contained in:
awesomenix 2014-12-13 10:46:43 -08:00
parent 370f0ae869
commit 92367e8a62
1 changed files with 4 additions and 1 deletions

View File

@ -1,5 +1,7 @@
@echo off @echo off
REM Download Mingw 64 on Windows from http://win-builds.org/download.html
set GOARCH=%1 set GOARCH=%1
IF "%1" == "" (set GOARCH=amd64) IF "%1" == "" (set GOARCH=amd64)
set ORG_PATH=github.com\hashicorp set ORG_PATH=github.com\hashicorp
@ -9,6 +11,7 @@ set GOPATH=%cd%\gopath
rmdir /s /q %GOPATH%\src\%REPO_PATH% 2>nul rmdir /s /q %GOPATH%\src\%REPO_PATH% 2>nul
mkdir %GOPATH%\src\%ORG_PATH% 2>nul mkdir %GOPATH%\src\%ORG_PATH% 2>nul
go get .\...
mklink /J "%GOPATH%\src\%REPO_PATH%" "%cd%" 2>nul mklink /J "%GOPATH%\src\%REPO_PATH%" "%cd%" 2>nul
%GOROOT%\bin\go build -o bin\%GOARCH%\consul.exe %REPO_PATH% %GOROOT%\bin\go build -o bin\%GOARCH%\consul.exe %REPO_PATH%