mirror of
https://github.com/danog/gllvm.git
synced 2024-11-26 22:34:47 +01:00
Just some more flags... really need to do this more systematically.
This commit is contained in:
parent
bd296e284d
commit
6a7f027e99
@ -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...)
|
||||||
}
|
}
|
||||||
|
@ -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},
|
||||||
|
@ -152,7 +152,7 @@ func checkOS() {
|
|||||||
|
|
||||||
informUser("We do not support the OS %s", platform)
|
informUser("We do not support the OS %s", platform)
|
||||||
os.Exit(1)
|
os.Exit(1)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func checkCompilers() bool {
|
func checkCompilers() bool {
|
||||||
|
Loading…
Reference in New Issue
Block a user