aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/envconfig.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2020-03-23 18:07:24 +0200
committerJussi Pakkanen <jpakkane@gmail.com>2020-03-23 18:07:24 +0200
commit7924e5f9c20017a0ad7df6ee1cdb540d8a98dff7 (patch)
tree8f0637e630777cc4a5707c16a30c4d980b888371 /mesonbuild/envconfig.py
parent097dfc085e6a1bb3c670880134a52dcfca504be7 (diff)
downloadmeson-7924e5f9c20017a0ad7df6ee1cdb540d8a98dff7.zip
meson-7924e5f9c20017a0ad7df6ee1cdb540d8a98dff7.tar.gz
meson-7924e5f9c20017a0ad7df6ee1cdb540d8a98dff7.tar.bz2
Revert "Naturally use env vars a bit more to match Autoconf"
This reverts commit 097dfc085e6a1bb3c670880134a52dcfca504be7.
Diffstat (limited to 'mesonbuild/envconfig.py')
-rw-r--r--mesonbuild/envconfig.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/mesonbuild/envconfig.py b/mesonbuild/envconfig.py
index e0d07c5..ac13a71 100644
--- a/mesonbuild/envconfig.py
+++ b/mesonbuild/envconfig.py
@@ -119,9 +119,9 @@ def get_env_var_pair(for_machine: MachineChoice,
# 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
- [var_name],
+ ([] if is_cross else [var_name]),
)[for_machine]
for var in candidates:
value = os.environ.get(var)