mirror of
https://github.com/golang/go
synced 2024-11-17 21:04:43 -07:00
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 <gri@golang.org>
This commit is contained in:
parent
8d31a86a1e
commit
23791ee11d
@ -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())
|
||||
|
Loading…
Reference in New Issue
Block a user