diff options
author | Dylan Baker <dylan@pnwbakers.com> | 2020-12-08 10:33:11 -0800 |
---|---|---|
committer | Dylan Baker <dylan@pnwbakers.com> | 2021-01-11 11:15:06 -0800 |
commit | 4580433b8255b9f69dfbd39a28c21bc1ec785bcf (patch) | |
tree | 57dd738f1d2ebe943f4ae1266d6f8551d737535f /run_unittests.py | |
parent | 7248a64750fc0748f7d86b65e03172f00b515690 (diff) | |
download | meson-4580433b8255b9f69dfbd39a28c21bc1ec785bcf.zip meson-4580433b8255b9f69dfbd39a28c21bc1ec785bcf.tar.gz meson-4580433b8255b9f69dfbd39a28c21bc1ec785bcf.tar.bz2 |
rename cflags_mapping to CFLAGS_MAPPING
This is PEP8 convention for a const variable. Also, make the type
Mapping, which doesn't have mutation methods. This means mypy will warn
us if someone tries to change this.
Diffstat (limited to 'run_unittests.py')
-rwxr-xr-x | run_unittests.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/run_unittests.py b/run_unittests.py index 5118b00..2f102b4 100755 --- a/run_unittests.py +++ b/run_unittests.py @@ -9347,7 +9347,7 @@ def unset_envs(): # For unit tests we must fully control all command lines # so that there are no unexpected changes coming from the # environment, for example when doing a package build. - varnames = ['CPPFLAGS', 'LDFLAGS'] + list(mesonbuild.compilers.compilers.cflags_mapping.values()) + varnames = ['CPPFLAGS', 'LDFLAGS'] + list(mesonbuild.compilers.compilers.CFLAGS_MAPPING.values()) for v in varnames: if v in os.environ: del os.environ[v] |