summaryrefslogtreecommitdiff
path: root/mesonbuild
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2025-05-15 13:21:33 +0200
committerDylan Baker <dylan@pnwbakers.com>2025-10-06 14:44:31 -0700
commita77eb5f2c9a0bbcd387c67f5fe24bb63b6daf8fe (patch)
tree0528d0bb589a7466467f975f9a97fc4a4282c4aa /mesonbuild
parent86e3d47230a8b9be6f09176e08641960eed1fb45 (diff)
downloadmeson-a77eb5f2c9a0bbcd387c67f5fe24bb63b6daf8fe.tar.gz
environment: remove dead code
The key is already correct at this point, no need to look up CFLAGS_MAPPING. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'mesonbuild')
-rw-r--r--mesonbuild/environment.py3
1 files changed, 0 insertions, 3 deletions
diff --git a/mesonbuild/environment.py b/mesonbuild/environment.py
index 80353982e..689508f09 100644
--- a/mesonbuild/environment.py
+++ b/mesonbuild/environment.py
@@ -833,9 +833,6 @@ class Environment:
env_opts[key].extend(p_list)
else:
key = OptionKey.from_string(keyname).evolve(machine=for_machine)
- if evar in compilers.compilers.CFLAGS_MAPPING.values():
- lang = key.name.split('_', 1)[0]
- key = key.evolve(f'{lang}_args')
env_opts[key].extend(p_list)
# If this is an environment variable, we have to