Skip to content

Commit ec1bb5f

Browse files
committed
Address review comment
1 parent 0190890 commit ec1bb5f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/spack/spack/solver/asp.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1472,8 +1472,11 @@ def target_defaults(self, specs):
14721472
self.target_ranges(spec, None)
14731473
continue
14741474

1475-
if target not in candidate_targets:
1475+
if target not in candidate_targets and not host_compatible:
14761476
candidate_targets.append(target)
1477+
for ancestor in target.ancestors:
1478+
if ancestor not in candidate_targets:
1479+
candidate_targets.append(ancestor)
14771480

14781481
i = 0
14791482
for target in candidate_targets:

0 commit comments

Comments
 (0)