Just some more flags... really need to do this more systematically.

This commit is contained in:
Ian A. Mason 2018-05-04 14:25:44 -07:00
parent bd296e284d
commit 6a7f027e99
3 changed files with 12 additions and 9 deletions

View File

@ -131,7 +131,6 @@ func LogFatal(format string, a ...interface{}) {
//LogWrite writes to the logging stream, irregardless of levels. //LogWrite writes to the logging stream, irregardless of levels.
var LogWrite = makeLogger(-1) var LogWrite = makeLogger(-1)
func informUser(format string, a ...interface{}) { func informUser(format string, a ...interface{}) {
fmt.Fprintf(os.Stdout, format, a...) fmt.Fprintf(os.Stdout, format, a...)
} }

View File

@ -109,13 +109,14 @@ func parse(argList []string) parserResult {
"-emit-llvm": {0, pr.emitLLVMCallback}, "-emit-llvm": {0, pr.emitLLVMCallback},
"-pipe": {0, pr.compileUnaryCallback}, "-pipe": {0, pr.compileUnaryCallback},
"-undef": {0, pr.compileUnaryCallback}, "-undef": {0, pr.compileUnaryCallback},
"-nostdinc": {0, pr.compileUnaryCallback}, "-nostdinc": {0, pr.compileUnaryCallback},
"-nostdinc++": {0, pr.compileUnaryCallback}, "-nostdinc++": {0, pr.compileUnaryCallback},
"-Qunused-arguments": {0, pr.compileUnaryCallback}, "-Qunused-arguments": {0, pr.compileUnaryCallback},
"-no-integrated-as": {0, pr.compileUnaryCallback}, "-no-integrated-as": {0, pr.compileUnaryCallback},
"-integrated-as": {0, pr.compileUnaryCallback}, "-integrated-as": {0, pr.compileUnaryCallback},
"-no-canonical-prefixes": {0, pr.compileLinkUnaryCallback},
"-pthread": {0, pr.compileUnaryCallback}, "-pthread": {0, pr.compileUnaryCallback},
"-nostdlibinc": {0, pr.compileUnaryCallback}, "-nostdlibinc": {0, pr.compileUnaryCallback},
@ -193,6 +194,7 @@ func parse(argList []string) parserResult {
"-g": {0, pr.compileUnaryCallback}, "-g": {0, pr.compileUnaryCallback},
"-g0": {0, pr.compileUnaryCallback}, "-g0": {0, pr.compileUnaryCallback},
"-g1": {0, pr.compileUnaryCallback},
"-ggdb": {0, pr.compileUnaryCallback}, "-ggdb": {0, pr.compileUnaryCallback},
"-ggdb3": {0, pr.compileUnaryCallback}, "-ggdb3": {0, pr.compileUnaryCallback},
"-gdwarf-2": {0, pr.compileUnaryCallback}, "-gdwarf-2": {0, pr.compileUnaryCallback},
@ -256,6 +258,8 @@ func parse(argList []string) parserResult {
`^-(l|L).+$`: {0, pr.linkUnaryCallback}, `^-(l|L).+$`: {0, pr.linkUnaryCallback},
`^-I.+$`: {0, pr.compileUnaryCallback}, `^-I.+$`: {0, pr.compileUnaryCallback},
`^-D.+$`: {0, pr.compileUnaryCallback}, `^-D.+$`: {0, pr.compileUnaryCallback},
`^-B.+$`: {0, pr.compileLinkUnaryCallback},
`^-isystem.+$`: {0, pr.compileLinkUnaryCallback},
`^-U.+$`: {0, pr.compileUnaryCallback}, `^-U.+$`: {0, pr.compileUnaryCallback},
`^-Wl,.+$`: {0, pr.linkUnaryCallback}, `^-Wl,.+$`: {0, pr.linkUnaryCallback},
`^-W[^l].*$`: {0, pr.compileUnaryCallback}, `^-W[^l].*$`: {0, pr.compileUnaryCallback},