Created
October 12, 2012 13:14
-
-
Save smugen/3879136 to your computer and use it in GitHub Desktop.
golang Go tools switcher batch for Windows 64 / 32 cross-compiling
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
IF "%GOCC_OLD_PATH%" NEQ "" GOTO restorepath | |
:savepath | |
ECHO save PATH to GOCC_OLD_PATH | |
SET GOCC_OLD_PATH=%PATH% | |
GOTO oldpathdone | |
:restorepath | |
ECHO restore PATH from GOCC_OLD_PATH | |
PATH %GOCC_OLD_PATH% | |
:oldpathdone | |
PATH %GOROOT%\bin;%PATH% | |
ECHO ======================================== | |
ECHO go env | |
ECHO ---------------------------------------- | |
go env | |
ECHO ======================================== | |
ECHO go tool | |
ECHO ---------------------------------------- | |
go tool |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@ECHO OFF | |
SET GOROOT=C:\Go32 | |
goccpath.bat |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@ECHO OFF | |
SET GOROOT=C:\Go | |
goccpath.bat |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment