1
0
mirror of https://github.com/golang/go synced 2024-11-22 12:14:42 -07:00

Use the environment variable CC as the bootstrap compiler used

to build 6g, 6l, etc.

R=rsc
CC=go-dev
http://go/go-review/1018015
This commit is contained in:
Ian Lance Taylor 2009-11-01 16:13:37 -08:00
parent b96ad80949
commit fab7ae15ee
2 changed files with 7 additions and 10 deletions

View File

@ -16,7 +16,8 @@ fi
bash clean.bash bash clean.bash
rm -f $GOBIN/quietgcc rm -f $GOBIN/quietgcc
cp quietgcc.bash $GOBIN/quietgcc CC=${CC:-gcc}
sed -e "s|@CC@|$CC|" < quietgcc.bash > $GOBIN/quietgcc
chmod +x $GOBIN/quietgcc chmod +x $GOBIN/quietgcc
for i in lib9 libbio libmach cmd pkg libcgo cmd/cgo cmd/ebnflint cmd/godoc cmd/gofmt for i in lib9 libbio libmach cmd pkg libcgo cmd/cgo cmd/ebnflint cmd/godoc cmd/gofmt

View File

@ -16,15 +16,11 @@ ignore=$ignore'|: At top level: '
ignore=$ignore'|In file included from' ignore=$ignore'|In file included from'
ignore=$ignore'| from' ignore=$ignore'| from'
# Figure out which cc to run. # Figure out which cc to run; this is set by make.bash.
# Can use plain cc on real 64-bit machines gcc=@CC@
# and on OS X, but have to use crosstool on if test "$gcc" = "@C""C@"; then
# mixed64-32 machines like thresher. gcc=gcc
gcc=gcc fi
case "`uname -a`" in
*mixed64-32*)
gcc=/usr/crosstool/v10/gcc-4.2.1-glibc-2.3.2/x86_64-unknown-linux-gnu/x86_64-unknown-linux-gnu/bin/gcc
esac
# If this is a 64-bit machine, compile 64-bit versions of # If this is a 64-bit machine, compile 64-bit versions of
# the host tools, to match the native ptrace. # the host tools, to match the native ptrace.