]> Cypherpunks repositories - gostls13.git/commit
ignore $GOARCH inside the compiler and linker.
authorRob Pike <r@golang.org>
Wed, 13 Jan 2010 03:39:16 +0000 (14:39 +1100)
committerRob Pike <r@golang.org>
Wed, 13 Jan 2010 03:39:16 +0000 (14:39 +1100)
commitccbcefe2b63382eb7771de9054cb5eb774d8dac8
tree14bbb7be6b2ffb80d6841f90951653feda9d70a5
parentea1a36efcda31c159655be5e8258bb88fb600a1a
ignore $GOARCH inside the compiler and linker.
by definition, they know what they are building for.
makes it easier to switch architectures when testing.

% 6g x.go
% 6l x.6
% 6.out
"Wed Jan 13 10:57:46 EST 2010"
% 8g x.go
% 8l x.8
% 8.out
"Wed Jan 13 10:57:46 EST 2010"
% echo $GOARCH

%

R=rsc
CC=golang-dev
https://golang.org/cl/186116
src/cmd/gc/lex.c
src/cmd/ld/lib.c
src/cmd/ld/lib.h