File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -1576,8 +1576,9 @@ def post_iter_step(self):
15761576
15771577 def det_iter_cnt (self ):
15781578 """Determine iteration count based on configure/build/install options that may be lists."""
1579- iter_opt_counts = [len (self .cfg [opt ]) for opt in ITERATE_OPTIONS
1580- if opt not in ['builddependencies' ] and isinstance (self .cfg [opt ], (list , tuple ))]
1579+ # Using get_ref to avoid template substitution (and possible failures)
1580+ iter_opt_counts = [len (self .cfg .get_ref (opt )) for opt in ITERATE_OPTIONS
1581+ if opt not in ['builddependencies' ] and isinstance (self .cfg .get_ref (opt ), (list , tuple ))]
15811582
15821583 # we need to take into account that builddependencies is always a list
15831584 # we're only iterating over it if it's a list of lists
You can’t perform that action at this time.
0 commit comments