Revert logic also in followup commit

In 8d7ffe6e86 need_exe_wrapper() use was copied which was just reverted,
so replace with is_cross there too, to keep things in sync.
pull/13436/head
Christoph Reiter 5 months ago committed by Eli Schwartz
parent d9e2dd6c80
commit 76bd5548ae
  1. 2
      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)

Loading…
Cancel
Save