diff --git a/shared/logging.go b/shared/logging.go index 77d37a0..102fb01 100644 --- a/shared/logging.go +++ b/shared/logging.go @@ -131,7 +131,6 @@ func LogFatal(format string, a ...interface{}) { //LogWrite writes to the logging stream, irregardless of levels. var LogWrite = makeLogger(-1) - func informUser(format string, a ...interface{}) { fmt.Fprintf(os.Stdout, format, a...) } diff --git a/shared/parser.go b/shared/parser.go index ae46359..d76f9f6 100644 --- a/shared/parser.go +++ b/shared/parser.go @@ -109,13 +109,14 @@ func parse(argList []string) parserResult { "-emit-llvm": {0, pr.emitLLVMCallback}, - "-pipe": {0, pr.compileUnaryCallback}, - "-undef": {0, pr.compileUnaryCallback}, - "-nostdinc": {0, pr.compileUnaryCallback}, - "-nostdinc++": {0, pr.compileUnaryCallback}, - "-Qunused-arguments": {0, pr.compileUnaryCallback}, - "-no-integrated-as": {0, pr.compileUnaryCallback}, - "-integrated-as": {0, pr.compileUnaryCallback}, + "-pipe": {0, pr.compileUnaryCallback}, + "-undef": {0, pr.compileUnaryCallback}, + "-nostdinc": {0, pr.compileUnaryCallback}, + "-nostdinc++": {0, pr.compileUnaryCallback}, + "-Qunused-arguments": {0, pr.compileUnaryCallback}, + "-no-integrated-as": {0, pr.compileUnaryCallback}, + "-integrated-as": {0, pr.compileUnaryCallback}, + "-no-canonical-prefixes": {0, pr.compileLinkUnaryCallback}, "-pthread": {0, pr.compileUnaryCallback}, "-nostdlibinc": {0, pr.compileUnaryCallback}, @@ -193,6 +194,7 @@ func parse(argList []string) parserResult { "-g": {0, pr.compileUnaryCallback}, "-g0": {0, pr.compileUnaryCallback}, + "-g1": {0, pr.compileUnaryCallback}, "-ggdb": {0, pr.compileUnaryCallback}, "-ggdb3": {0, pr.compileUnaryCallback}, "-gdwarf-2": {0, pr.compileUnaryCallback}, @@ -256,6 +258,8 @@ func parse(argList []string) parserResult { `^-(l|L).+$`: {0, pr.linkUnaryCallback}, `^-I.+$`: {0, pr.compileUnaryCallback}, `^-D.+$`: {0, pr.compileUnaryCallback}, + `^-B.+$`: {0, pr.compileLinkUnaryCallback}, + `^-isystem.+$`: {0, pr.compileLinkUnaryCallback}, `^-U.+$`: {0, pr.compileUnaryCallback}, `^-Wl,.+$`: {0, pr.linkUnaryCallback}, `^-W[^l].*$`: {0, pr.compileUnaryCallback}, diff --git a/shared/sanity.go b/shared/sanity.go index 09597ac..ff5ea88 100644 --- a/shared/sanity.go +++ b/shared/sanity.go @@ -152,7 +152,7 @@ func checkOS() { informUser("We do not support the OS %s", platform) os.Exit(1) - + } func checkCompilers() bool {