mirror of
https://github.com/danog/gllvm.git
synced 2024-11-26 19:34:49 +01:00
Makefile fix, and a logFatal to absorb all the occurrences of log.Fatal
This commit is contained in:
parent
071418d0b5
commit
70a1cee8fe
2
Makefile
2
Makefile
@ -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
|
||||
|
@ -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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user