Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: use list for mutable retval rather than tuple #41372

Merged
merged 2 commits into from Jan 5, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 3 additions & 3 deletions configure.py
Expand Up @@ -828,7 +828,7 @@ def pkg_config(pkg):
otherwise (None, None, None, None)"""
pkg_config = os.environ.get('PKG_CONFIG', 'pkg-config')
args = [] # Print pkg-config warnings on first round.
retval = ()
retval = []
Trott marked this conversation as resolved.
Show resolved Hide resolved
for flag in ['--libs-only-l', '--cflags-only-I',
'--libs-only-L', '--modversion']:
args += [flag]
Expand All @@ -843,9 +843,9 @@ def pkg_config(pkg):
except OSError as e:
if e.errno != errno.ENOENT: raise e # Unexpected error.
return (None, None, None, None) # No pkg-config/pkgconf installed.
retval += (val,)
retval.append(val)
args = ['--silence-errors']
return retval
return tuple(retval)


def try_check_compiler(cc, lang):
Expand Down