2021-02-20 14:25:04 +00:00
|
|
|
diff --git a/mesonbuild/environment.py b/mesonbuild/environment.py
|
|
|
|
index 756dd8193..a5cc6ef8b 100644
|
|
|
|
--- a/mesonbuild/environment.py
|
|
|
|
+++ b/mesonbuild/environment.py
|
|
|
|
@@ -151,7 +151,7 @@ def _get_env_var(for_machine: MachineChoice, is_cross: bool, var_name: str) -> T
|
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]
|