Merge "Do not duplicate arch properties when cpu variant == arch variant"

This commit is contained in:
Treehugger Robot
2016-12-20 20:01:38 +00:00
committed by Gerrit Code Review

View File

@@ -610,12 +610,14 @@ func (a *ModuleBase) setArchProperties(ctx BottomUpMutatorContext) {
// key: value, // key: value,
// }, // },
// }, // },
if arch.CpuVariant != arch.ArchVariant {
c := variantReplacer.Replace(arch.CpuVariant) c := variantReplacer.Replace(arch.CpuVariant)
if c != "" { if c != "" {
field := proptools.FieldNameForProperty(c) field := proptools.FieldNameForProperty(c)
prefix := "arch." + t.Name + "." + c prefix := "arch." + t.Name + "." + c
a.appendProperties(ctx, genProps, archStruct, field, prefix) a.appendProperties(ctx, genProps, archStruct, field, prefix)
} }
}
// Handle arch-feature-specific properties in the form: // Handle arch-feature-specific properties in the form:
// arch: { // arch: {