2020-04-26 21:32:56 +01:00
|
|
|
diff --git a/mesonbuild/envconfig.py b/mesonbuild/envconfig.py
|
2020-05-15 15:54:26 +01:00
|
|
|
index 17058df6b..7a68b7f15 100644
|
2020-04-26 21:32:56 +01:00
|
|
|
--- a/mesonbuild/envconfig.py
|
|
|
|
+++ b/mesonbuild/envconfig.py
|
2020-05-15 15:54:26 +01:00
|
|
|
@@ -120,7 +120,7 @@ def get_env_var_pair(for_machine: MachineChoice,
|
2020-04-26 21:32:56 +01:00
|
|
|
# compiling we fall back on the unprefixed host version. This
|
|
|
|
# allows native builds to never need to worry about the 'BUILD_*'
|
|
|
|
# ones.
|
|
|
|
- ([var_name + '_FOR_BUILD'] if is_cross else [var_name]),
|
|
|
|
+ [var_name + '_FOR_BUILD'] + ([] if is_cross else [var_name]),
|
|
|
|
# Always just the unprefixed host verions
|
2020-05-15 15:54:26 +01:00
|
|
|
[var_name]
|
2020-04-26 21:32:56 +01:00
|
|
|
)[for_machine]
|