From 7833af17f922f35680659e473d012cf3b65f097c Mon Sep 17 00:00:00 2001 From: Frederick Mayle Date: Fri, 7 Jun 2024 16:02:44 -0700 Subject: [PATCH] allow arch_variants for C++'s rtti option Currently, the RTTI setting is ignored for host builds, but we want to change that. As a prereq, we need a way to explicitly enable/disable it for host builds. Bug: 341341056 Test: m Change-Id: Ie503218181cec4f4ef70063caaa4832f748a8eb5 --- cc/compiler.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cc/compiler.go b/cc/compiler.go index 34d98c02d..75a144d68 100644 --- a/cc/compiler.go +++ b/cc/compiler.go @@ -101,7 +101,7 @@ type BaseCompilerProperties struct { Generated_headers []string `android:"arch_variant,variant_prepend"` // pass -frtti instead of -fno-rtti - Rtti *bool + Rtti *bool `android:"arch_variant"` // C standard version to use. Can be a specific version (such as "gnu11"), // "experimental" (which will use draft versions like C1x when available),