Rename ninja variables with Clang in the name
Rename the ninja variables that have an extraneous Clang in the name,
since there are no longer any non-Clang variables.
Bug: 68947919
Test: no change to command lines used to build mmma bionic
Change-Id: I081d5e1d423a66d55faece6cb1d265cd5e504d5f
diff --git a/cc/config/x86_device.go b/cc/config/x86_device.go
index a95ac6f..5e510a4 100644
--- a/cc/config/x86_device.go
+++ b/cc/config/x86_device.go
@@ -104,9 +104,8 @@
pctx.StaticVariable("X86Lldflags", strings.Join(x86Ldflags, " "))
// Clang cflags
- pctx.StaticVariable("X86ClangLldflags", strings.Join(x86Ldflags, " "))
- pctx.StaticVariable("X86ClangCflags", strings.Join(x86Cflags, " "))
- pctx.StaticVariable("X86ClangCppflags", strings.Join(x86Cppflags, " "))
+ pctx.StaticVariable("X86Cflags", strings.Join(x86Cflags, " "))
+ pctx.StaticVariable("X86Cppflags", strings.Join(x86Cppflags, " "))
// Yasm flags
pctx.StaticVariable("X86YasmFlags", "-f elf32 -m x86")
@@ -115,7 +114,7 @@
// Architecture variant cflags
for variant, cflags := range x86ArchVariantCflags {
- pctx.StaticVariable("X86"+variant+"VariantClangCflags",
+ pctx.StaticVariable("X86"+variant+"VariantCflags",
strings.Join(cflags, " "))
}
}
@@ -159,11 +158,11 @@
}
func (t *toolchainX86) Cflags() string {
- return "${config.X86ClangCflags}"
+ return "${config.X86Cflags}"
}
func (t *toolchainX86) Cppflags() string {
- return "${config.X86ClangCppflags}"
+ return "${config.X86Cppflags}"
}
func (t *toolchainX86) Ldflags() string {
@@ -185,7 +184,7 @@
func x86ToolchainFactory(arch android.Arch) Toolchain {
toolchainCflags := []string{
"${config.X86ToolchainCflags}",
- "${config.X86" + arch.ArchVariant + "VariantClangCflags}",
+ "${config.X86" + arch.ArchVariant + "VariantCflags}",
}
for _, feature := range arch.ArchFeatures {