| # Point to pre-built version of gcc and libraries. |
| export GCC_TOOLCHAIN_ROOT=$REPO_ROOT/prebuilts/gcc/linux-x86/host/x86_64-w64-mingw32-4.8 |
| export MINGW_ROOT=$GCC_TOOLCHAIN_ROOT |
| export PATH=$GCC_TOOLCHAIN_ROOT/bin:$PATH |
| export LD_LIBRARY_PATH=$GCC_TOOLCHAIN_ROOT/x86_64-w64-mingw32/lib64:$LD_LIBRARY_PATH |
| |
| # CC and CXX are used by go to find the c & c++ compilers. |
| export CC=x86_64-w64-mingw32-gcc |
| export CXX=x86_64-w64-mingw32-g++ |
| |
| export GOROOT=$REPO_ROOT/prebuilts/go/linux-x86 |
| export GOPATH=$GPU_BUILD_ROOT |
| |
| # Add the pre-built go tools to the path. |
| export PATH=$GOROOT/bin:$PATH |
| |
| export GOOS=windows |
| export GOARCH=amd64 |
| export CGO_ENABLED=1 |