Add Instructions on Downloading Mingw 64bit for Building memdb
This commit is contained in:
parent
9e2f6e59e1
commit
ea0cc35747
|
@ -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%
|
Loading…
Reference in New Issue