Override mcpu option of ToolingCFlags when mcpu is eyxnos-m2.

sAbiDumper uses one year old clang which does not support
recent mcpu options like exynos-m2.
So, we set mcpu=cortex-a53 for ToolingCFlags.

Change-Id: I294ca692181fd2cbc6ba5efb1e4e2d2d605b7a85
Signed-off-by: Junmo Park <junmoz.park@samsung.com>
This commit is contained in:
Junmo Park 2017-07-20 13:29:24 +09:00
parent e8dc34a372
commit ccbd62e050
1 changed files with 7 additions and 0 deletions

View File

@ -67,6 +67,13 @@ func (sabimod *sabi) flags(ctx ModuleContext, flags Flags) Flags {
// Assuming that the cflags which clang LibTooling tools cannot
// understand have not been converted to ninja variables yet.
flags.ToolingCFlags = filterOutWithPrefix(flags.CFlags, config.ClangLibToolingUnknownCflags)
// RSClang does not support recent mcpu option likes exynos-m2.
// So we need overriding mcpu option when we want to use it.
if ctx.Arch().CpuVariant == "exynos-m2" {
flags.ToolingCFlags = append(flags.ToolingCFlags, "-mcpu=cortex-a53")
}
return flags
}