diff --git a/cc/config/clang.go b/cc/config/clang.go index 5cf24219e..b58223f09 100644 --- a/cc/config/clang.go +++ b/cc/config/clang.go @@ -92,12 +92,7 @@ var ClangUnknownLldflags = sorted([]string{ "-Wl,-m,aarch64_elf64_le_vec", }) -var ClangLibToolingUnknownCflags = []string{ - // Remove -flto and other flto dependent flags. - "-flto*", - "-fsanitize*", - "-fwhole-program-vtables", -} +var ClangLibToolingUnknownCflags []string = nil func init() { pctx.StaticVariable("ClangExtraCflags", strings.Join([]string{ diff --git a/cc/sabi.go b/cc/sabi.go index 72a3c5c55..4a8649945 100644 --- a/cc/sabi.go +++ b/cc/sabi.go @@ -73,17 +73,6 @@ func (sabimod *sabi) flags(ctx ModuleContext, flags Flags) Flags { flags.ToolingCFlags = filterOutWithPrefix(flags.CFlags, config.ClangLibToolingUnknownCflags) flags.ToolingCppFlags = filterOutWithPrefix(flags.CppFlags, config.ClangLibToolingUnknownCflags) - // RSClang does not support recent mcpu option likes exynos-m2. - // So we need overriding mcpu option when we want to use it. - 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 }