bugfix: use getattr for variation.prefix/suffix (#17669)

This commit is contained in:
eugeneswalker 2020-07-22 16:15:25 -07:00 committed by GitHub
parent 4c7e52adaa
commit f1eec05d0e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 = []