about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/tools/build-managers/meson/more-env-vars.patch
blob: e4ad43550423dddd33b6294e3d34a700a0d6938f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
diff -Naur meson-0.60.2-old/mesonbuild/environment.py meson-0.60.2-new/mesonbuild/environment.py
--- meson-0.60.2-old/mesonbuild/environment.py	2021-11-02 16:58:13.000000000 -0300
+++ meson-0.60.2-new/mesonbuild/environment.py	2021-12-12 17:44:00.350499307 -0300
@@ -68,7 +68,7 @@
         # 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 versions
         [var_name]
     )[for_machine]