···1diff --git a/mesonbuild/envconfig.py b/mesonbuild/envconfig.py
2-index ac13a710..e0d07c51 100644
3--- a/mesonbuild/envconfig.py
4+++ b/mesonbuild/envconfig.py
5-@@ -119,9 +119,9 @@ def get_env_var_pair(for_machine: MachineChoice,
6 # compiling we fall back on the unprefixed host version. This
7 # allows native builds to never need to worry about the 'BUILD_*'
8 # ones.
9- ([var_name + '_FOR_BUILD'] if is_cross else [var_name]),
10+ [var_name + '_FOR_BUILD'] + ([] if is_cross else [var_name]),
11 # Always just the unprefixed host verions
12-- ([] if is_cross else [var_name]),
13-+ [var_name],
14 )[for_machine]
15- for var in candidates:
16- value = os.environ.get(var)
···1diff --git a/mesonbuild/envconfig.py b/mesonbuild/envconfig.py
2+index 17058df6b..7a68b7f15 100644
3--- a/mesonbuild/envconfig.py
4+++ b/mesonbuild/envconfig.py
5+@@ -120,7 +120,7 @@ def get_env_var_pair(for_machine: MachineChoice,
6 # compiling we fall back on the unprefixed host version. This
7 # allows native builds to never need to worry about the 'BUILD_*'
8 # ones.
9- ([var_name + '_FOR_BUILD'] if is_cross else [var_name]),
10+ [var_name + '_FOR_BUILD'] + ([] if is_cross else [var_name]),
11 # Always just the unprefixed host verions
12+ [var_name]
013 )[for_machine]
00