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:
parent
e8dc34a372
commit
ccbd62e050
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue