aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYi Kong <yikong@google.com>2018-06-14 22:38:10 -0700
committerYi Kong <yikong@google.com>2018-06-19 00:37:02 +0000
commit9747eed816fda6b1766f20dfb84b43ffe4abc1be (patch)
tree7bcf124f1155f0fa0520b17523ced6e776ce45dd
parent39299e61610198b3d3c511a58ea540471d8e29c2 (diff)
downloadbuild_soong-9747eed816fda6b1766f20dfb84b43ffe4abc1be.tar.gz
build_soong-9747eed816fda6b1766f20dfb84b43ffe4abc1be.tar.bz2
build_soong-9747eed816fda6b1766f20dfb84b43ffe4abc1be.zip
Update ToolingCFlags overrides to include other new architectures
Bug: 110235326 Test: m checkbuild Change-Id: Ifaa35db08d35ed3cb14fce3e9c5643f26bc3f706 Merged-In: I9d0ada05d95bb260500c1d694332a73363b0f299 (cherry picked from commit 32a779171b78615b231d0680872942d2dd07b519)
-rw-r--r--cc/sabi.go9
1 files changed, 7 insertions, 2 deletions
diff --git a/cc/sabi.go b/cc/sabi.go
index f5a7c774..42b2f352 100644
--- a/cc/sabi.go
+++ b/cc/sabi.go
@@ -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