diff options
| author | Christoph Reiter <reiter.christoph@gmail.com> | 2024-07-12 06:34:32 +0200 |
|---|---|---|
| committer | Eli Schwartz <eschwartz93@gmail.com> | 2024-07-16 02:01:21 -0400 |
| commit | 76bd5548ae185e10a6cf3925980e8a18955e5c66 (patch) | |
| tree | f06bdea50399449144db079b9dfb46d20cfba961 /mesonbuild/compilers/d.py | |
| parent | d9e2dd6c806b5edf0f686c088fff2b3836ba1624 (diff) | |
| download | meson-76bd5548ae185e10a6cf3925980e8a18955e5c66.tar.gz | |
Revert logic also in followup commit
In 8d7ffe6e863834f0190e need_exe_wrapper() use was copied which was just reverted,
so replace with is_cross there too, to keep things in sync.
Diffstat (limited to 'mesonbuild/compilers/d.py')
| -rw-r--r-- | mesonbuild/compilers/d.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/compilers/d.py b/mesonbuild/compilers/d.py index 67aa2b1eb..d8b252a94 100644 --- a/mesonbuild/compilers/d.py +++ b/mesonbuild/compilers/d.py @@ -448,7 +448,7 @@ class DCompiler(Compiler): compile_cmdlist = self.exelist + self.get_output_args(output_name) + self._get_target_arch_args() + [source_name] # If cross-compiling, we can't run the sanity check, only compile it. - if environment.need_exe_wrapper(self.for_machine) and not environment.has_exe_wrapper(): + if self.is_cross and not environment.has_exe_wrapper(): compile_cmdlist += self.get_compile_only_args() pc = subprocess.Popen(compile_cmdlist, cwd=work_dir) |
