Makefile fix, and a logFatal to absorb all the occurrences of log.Fatal

This commit is contained in:
Ian A. Mason 2017-06-28 14:03:36 -07:00
parent 071418d0b5
commit 70a1cee8fe
2 changed files with 7 additions and 0 deletions

View File

@ -11,6 +11,8 @@ install: build
clean:
go clean
uninstall:
rm -f $(GOROOT)/bin/gclang
rm -f $(GOROOT)/bin/gclang++
rm -f $(GOROOT)/bin/get-bc

View File

@ -61,3 +61,8 @@ var logDebug = makeLogger(debug_v)
var logInfo = makeLogger(info_v)
var logWarning = makeLogger(warning_v)
var logError = makeLogger(error_v)
func logFatal(format string, a ...interface{}){
logError(format, a...)
os.Exit(1)
}