aboutsummaryrefslogtreecommitdiff
path: root/tools/setup_toolchain_linux-x64.txt
blob: 9d98fcce5d8e55d6d6fba4e045af6f62ba6c8a7e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# Point to pre-built version of gcc and libraries.
export GCC_TOOLCHAIN_ROOT=$REPO_ROOT/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.8
export PATH=$GCC_TOOLCHAIN_ROOT/bin:$PATH
export LD_LIBRARY_PATH=$GCC_TOOLCHAIN_ROOT/x86_64-linux/lib64:$LD_LIBRARY_PATH

# CC and CXX are used by go to find the c & c++ compilers.
export CC=x86_64-linux-gcc
export CXX=x86_64-linux-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=linux
export GOARCH=amd64
export CGO_ENABLED=1