bugfix: use getattr for variation.prefix/suffix (#17669)
This commit is contained in:
parent
4c7e52adaa
commit
f1eec05d0e
1 changed files with 2 additions and 2 deletions
|
@ -681,8 +681,8 @@ def _default_make_compilers(cmp_id, paths):
|
|||
sort_fn = lambda variation: (
|
||||
'cc' not in by_compiler_id[variation], # None last
|
||||
'cxx' not in by_compiler_id[variation], # None last
|
||||
variation.prefix,
|
||||
variation.suffix,
|
||||
getattr(variation, 'prefix', None),
|
||||
getattr(variation, 'suffix', None),
|
||||
)
|
||||
|
||||
compilers = []
|
||||
|
|
Loading…
Reference in a new issue