mcst-linux-kernel/patches-2024.06.26/meson-1.0.2/0002-fixed-cross-tmp.patch

13 lines
746 B
Diff

diff -rupN a/mesonbuild/compilers/mixins/clike.py b/mesonbuild/compilers/mixins/clike.py
--- a/mesonbuild/compilers/mixins/clike.py 2023-05-25 17:40:31.502300983 +0300
+++ b/mesonbuild/compilers/mixins/clike.py 2023-05-25 17:49:02.818985696 +0300
@@ -330,7 +330,7 @@ class CLikeCompiler(Compiler):
raise mesonlib.EnvironmentException(f'Compiler {self.name_string()} can not compile programs.')
# Run sanity check
if self.is_cross:
- if self.exe_wrapper is None:
+ if self.exe_wrapper is None or self.exe_wrapper == []:
# Can't check if the binaries run so we have to assume they do
return
cmdlist = self.exe_wrapper.get_command() + [binary_name]