diff --git a/cc/compiler.go b/cc/compiler.go index 90382f5bd..5ac5d7959 100644 --- a/cc/compiler.go +++ b/cc/compiler.go @@ -391,7 +391,7 @@ func (compiler *baseCompiler) compilerFlags(ctx ModuleContext, flags Flags, deps flags.GlobalFlags = append([]string{"${config.ClangExternalCflags}"}, flags.GlobalFlags...) } - if ctx.Device() { + if tc.Bionic() { if Bool(compiler.Properties.Rtti) { flags.CppFlags = append(flags.CppFlags, "-frtti") } else {