blob: 75728bdfab960f8ac78b2b445526e6f55b2c3c72 [file] [log] [blame]
# clang is failing on the build server, so disable it and fall back
# the local gcc. The make.go build is already using the
# local gcc, so this just uses the same compiler for both
# parts of the build.
# TODO: Switch back to using a checked in toolchain
# and update make.go to use that toolchain.
# Point to pre-built version of gcc and libraries.
#export GCC_TOOLCHAIN_ROOT=$REPO_ROOT/prebuilts/clang/darwin-x86/host/3.5
#export PATH=$GCC_TOOLCHAIN_ROOT/bin:$PATH
#export LD_LIBRARY_PATH=$GCC_TOOLCHAIN_ROOT/lib64:$LD_LIBRARY_PATH
# CC and CXX are used by go to find the c & c++ compilers.
#export CC=clang
#export CXX=clang++
export GOROOT=$REPO_ROOT/prebuilts/go/darwin-x86
export GOPATH=$GPU_BUILD_ROOT
# Add the pre-built go tools to the path.
export PATH=$GOROOT/bin:$PATH
export GOOS=darwin
export GOARCH=amd64
export CGO_ENABLED=1