]> Cypherpunks repositories - gostls13.git/commit
cmd/go: hide work subdirectory names in gcc/clang object files
authorRuss Cox <rsc@golang.org>
Tue, 18 Jul 2017 15:57:05 +0000 (11:57 -0400)
committerRuss Cox <rsc@golang.org>
Sat, 30 Sep 2017 00:55:58 +0000 (00:55 +0000)
commita1fb024ac923bba8350ead22188fbcf0cca985a7
tree523e031454639fb5daa95967dc6881044d006d18
parent1409c28707264cd9e30082920da772b841f2bc9e
cmd/go: hide work subdirectory names in gcc/clang object files

Until now the subdirectories under $WORK have had predictable
names, so it was OK to strip just $WORK from the file names that
end up in object files. In the future, those predictable names would
cause predictable collisions when compiling one package in two
different ways, so we're moving toward arbitrary, unpredictable
subdirectory names instead. When we do that, if the names appear
in the object files we won't get reproducible builds.

Take the subdirectory names out now, to make the later change safe.

Change-Id: I8057d1cc73f6e35c98b7718c9789c161dcbd87c0
Reviewed-on: https://go-review.googlesource.com/67251
Run-TryBot: Russ Cox <rsc@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/cmd/go/internal/envcmd/env.go
src/cmd/go/internal/work/build.go