Add more missing clang flags

Add clangExtraCflags, clangExtraConlyflags, and clangExtraTargetCflags

Change-Id: I99a12ba3af43c2fcf97a1d96a0a32efd8d4bfde5
This commit is contained in:
Colin Cross 2015-03-16 16:21:20 -07:00
parent 77b00fa6f1
commit bdd7b1c818

View file

@ -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")