fixup: spec copies compiler annotation

Signed-off-by: Massimiliano Culpo <massimiliano.culpo@gmail.com>
This commit is contained in:
Massimiliano Culpo 2024-10-12 19:30:10 +02:00
parent 73e0cf07cb
commit f729353ac3
No known key found for this signature in database
GPG Key ID: 3E52BB992233066C

View File

@ -3456,6 +3456,9 @@ def _dup(self, other: "Spec", deps: Union[bool, dt.DepTypes, dt.DepFlag] = True)
self.name = other.name self.name = other.name
self.versions = other.versions.copy() self.versions = other.versions.copy()
self.architecture = other.architecture.copy() if other.architecture else None self.architecture = other.architecture.copy() if other.architecture else None
if hasattr(other, "compiler_annotation"):
self.compiler_annotation = other.compiler_annotation
self.compiler_flags = other.compiler_flags.copy() self.compiler_flags = other.compiler_flags.copy()
self.compiler_flags.spec = self self.compiler_flags.spec = self
self.variants = other.variants.copy() self.variants = other.variants.copy()