From 23791ee11d7869fe73b9b19218c91674cff6d733 Mon Sep 17 00:00:00 2001 From: Shenghou Ma Date: Wed, 18 Nov 2015 23:39:53 -0500 Subject: [PATCH] cmd/compile: set log prefix and suppress date Fixes #13320. Change-Id: I3a96a6707982629caf89656c479d096891783328 Reviewed-on: https://go-review.googlesource.com/17050 Reviewed-by: Robert Griesemer --- src/cmd/compile/main.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/cmd/compile/main.go b/src/cmd/compile/main.go index 91c48313b7..3d11f515a2 100644 --- a/src/cmd/compile/main.go +++ b/src/cmd/compile/main.go @@ -13,10 +13,15 @@ import ( "cmd/compile/internal/x86" "cmd/internal/obj" "fmt" + "log" "os" ) func main() { + // disable timestamps for reproducible output + log.SetFlags(0) + log.SetPrefix("compile: ") + switch obj.Getgoarch() { default: fmt.Fprintf(os.Stderr, "compile: unknown architecture %q\n", obj.Getgoarch())