Fixed alias tip, i had forgotten to add "export" to a few of the env vars

Floppy 2018-02-06 19:34:09 +01:00
parent c9176945e3
commit 92a4d7f050

@ -27,7 +27,7 @@ Since that's quite a messy command to use each time you want to test your progra
* add the below line to the bottom of the file: * add the below line to the bottom of the file:
```sh ```sh
alias LinuxtoWindows="export CXX=x86_64-w64-mingw32-g++ && export CC=x86_64-w64-mingw32-gcc && CGO_ENABLED=1 && GOOS=windows" alias LinuxtoWindows="export CXX=x86_64-w64-mingw32-g++ && export CC=x86_64-w64-mingw32-gcc && export CGO_ENABLED=1 && export GOOS=windows"
``` ```
Now you may simply use `LinuxToWindows && go build file.go` to cross compile. Now you may simply use `LinuxToWindows && go build file.go` to cross compile.