]> Cypherpunks repositories - gostls13.git/commit
cmd/internal/gc: add -buildid flag to write build ID into object file
authorRuss Cox <rsc@golang.org>
Mon, 20 Apr 2015 03:56:30 +0000 (23:56 -0400)
committerRuss Cox <rsc@golang.org>
Wed, 3 Jun 2015 20:43:51 +0000 (20:43 +0000)
commit0f6da8923f2fcafdedc6fd64c6b2cfe1ecc6c97c
tree487602b3dcecd1af56d6112275a93da3eedf2681
parent3974357ecd2f63842b081331d485c168e3407e4d
cmd/internal/gc: add -buildid flag to write build ID into object file

The build ID is an opaque token supplied by the build system.
The compiler writes it out early in the Go export metadata
(the second line), in a way that does not bother existing readers.

The intent is that the go command can use this to store information
about the sources for the generated code, so that it can detect
stale packages even in cases (like removed files) where mtimes fail.

Change-Id: Ib5082515d6cde8a07a8d4b5c69d1e8e4190cb5e1
Reviewed-on: https://go-review.googlesource.com/9153
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/cmd/compile/internal/gc/export.go
src/cmd/compile/internal/gc/lex.go