Add more missing clang flags
Add clangExtraCflags, clangExtraConlyflags, and clangExtraTargetCflags Change-Id: I99a12ba3af43c2fcf97a1d96a0a32efd8d4bfde5
This commit is contained in:
parent
77b00fa6f1
commit
bdd7b1c818
6
cc/cc.go
6
cc/cc.go
|
@ -355,6 +355,12 @@ func (c *ccBase) flags(ctx common.AndroidModuleContext, toolchain toolchain) ccF
|
|||
flags.conlyFlags = clangFilterUnknownCflags(flags.conlyFlags)
|
||||
flags.ldFlags = clangFilterUnknownCflags(flags.ldFlags)
|
||||
|
||||
flags.cFlags = append(flags.cFlags, "${clangExtraCflags}")
|
||||
flags.conlyFlags = append(flags.conlyFlags, "${clangExtraConlyflags}")
|
||||
if arch.HostOrDevice.Device() {
|
||||
flags.cFlags = append(flags.cFlags, "${clangExtraTargetCflags}")
|
||||
}
|
||||
|
||||
target := "-target " + toolchain.ClangTriple()
|
||||
gccPrefix := "-B" + filepath.Join(toolchain.GccRoot(), toolchain.GccTriple(), "bin")
|
||||
|
||||
|
|
Loading…
Reference in New Issue