mirror of
https://github.com/danog/gllvm.git
synced 2024-11-26 19:14:43 +01:00
binary --sysroot variant.
This commit is contained in:
parent
df3a1a7b5f
commit
6fa871fa6c
@ -118,6 +118,8 @@ func parse(argList []string) parserResult {
|
||||
"-integrated-as": {0, pr.compileUnaryCallback},
|
||||
"-no-canonical-prefixes": {0, pr.compileLinkUnaryCallback},
|
||||
|
||||
"--sysroot": {1, pr.compileLinkBinaryCallback}, //iam: musl stuff
|
||||
|
||||
//<archaic flags>
|
||||
"-no-cpp-precomp": {0, pr.compileUnaryCallback},
|
||||
//</archaic flags>
|
||||
@ -318,7 +320,6 @@ func parse(argList []string) parserResult {
|
||||
}
|
||||
if !matched {
|
||||
LogWarning("Did not recognize the compiler flag: %v\n", elem)
|
||||
//LogWarning("CC %v\n", pr.InputList)
|
||||
pr.compileUnaryCallback(elem, argList[1:1])
|
||||
}
|
||||
argList = argList[1+listShift:]
|
||||
@ -443,3 +444,8 @@ func (pr *parserResult) compileLinkUnaryCallback(flag string, _ []string) {
|
||||
pr.LinkArgs = append(pr.LinkArgs, flag)
|
||||
pr.CompileArgs = append(pr.CompileArgs, flag)
|
||||
}
|
||||
|
||||
func (pr *parserResult) compileLinkBinaryCallback(flag string, args []string) {
|
||||
pr.LinkArgs = append(pr.LinkArgs, flag, args[0])
|
||||
pr.CompileArgs = append(pr.CompileArgs, flag, args[0])
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user