Merge "Do not duplicate arch properties when cpu variant == arch variant"
This commit is contained in:
@@ -610,11 +610,13 @@ func (a *ModuleBase) setArchProperties(ctx BottomUpMutatorContext) {
|
|||||||
// key: value,
|
// key: value,
|
||||||
// },
|
// },
|
||||||
// },
|
// },
|
||||||
c := variantReplacer.Replace(arch.CpuVariant)
|
if arch.CpuVariant != arch.ArchVariant {
|
||||||
if c != "" {
|
c := variantReplacer.Replace(arch.CpuVariant)
|
||||||
field := proptools.FieldNameForProperty(c)
|
if c != "" {
|
||||||
prefix := "arch." + t.Name + "." + c
|
field := proptools.FieldNameForProperty(c)
|
||||||
a.appendProperties(ctx, genProps, archStruct, field, prefix)
|
prefix := "arch." + t.Name + "." + c
|
||||||
|
a.appendProperties(ctx, genProps, archStruct, field, prefix)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Handle arch-feature-specific properties in the form:
|
// Handle arch-feature-specific properties in the form:
|
||||||
|
Reference in New Issue
Block a user