Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9747eed8 authored by Yi Kong's avatar Yi Kong
Browse files

Update ToolingCFlags overrides to include other new architectures

Bug: 110235326
Test: m checkbuild
Change-Id: Ifaa35db08d35ed3cb14fce3e9c5643f26bc3f706
Merged-In: I9d0ada05d95bb260500c1d694332a73363b0f299
(cherry picked from commit 32a77917)
parent 39299e61
Loading
Loading
Loading
Loading
+7 −2
Original line number Diff line number Diff line
@@ -74,8 +74,13 @@ func (sabimod *sabi) flags(ctx ModuleContext, flags Flags) Flags {

	// 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")
	mappedArch := map[string]string{
		"exynos-m2":  "cortex-a53",
		"cortex-a55": "cortex-a53",
		"cortex-a75": "cortex-a57",
	}
	if arch, ok := mappedArch[ctx.Arch().CpuVariant]; ok {
		flags.ToolingCFlags = append(flags.ToolingCFlags, "-mcpu="+arch)
	}

	return flags