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

Commit 3d5ee11e authored by Yi Kong's avatar Yi Kong Committed by android-build-merger
Browse files

Merge "Update ToolingCFlags overrides to include other new architectures" am: 8eb8704c

am: 86b2b317

Change-Id: I4f307f7683b7ab93eb2c24b7ff903971c4c7af89
parents aba39a6d 86b2b317
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