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 352442a383
commit 45e1573a17
No known key found for this signature in database
GPG Key ID: 3E52BB992233066C

View File

@ -3544,6 +3544,10 @@ def _dup(self, other, deps: Union[bool, dt.DepTypes, dt.DepFlag] = True, clearde
if cleardeps:
self._dependents = _EdgeMap(store_by_child=False)
self._dependencies = _EdgeMap(store_by_child=True)
if hasattr(other, "compiler_annotation"):
self.compiler_annotation = other.compiler_annotation
self.compiler_flags = other.compiler_flags.copy()
self.compiler_flags.spec = self
self.variants = other.variants.copy()