Skip to content

Commit c108d5b

Browse files
lazkaeli-schwartz
authored andcommitted
Revert logic also in followup commit
In 8d7ffe6 need_exe_wrapper() use was copied which was just reverted, so replace with is_cross there too, to keep things in sync. (cherry picked from commit 76bd554)
1 parent df833b0 commit c108d5b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • mesonbuild/compilers

‎mesonbuild/compilers/d.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,7 @@ def sanity_check(self, work_dir: str, environment: 'Environment') -> None:
447447
compile_cmdlist = self.exelist + self.get_output_args(output_name) + self._get_target_arch_args() + [source_name]
448448

449449
# If cross-compiling, we can't run the sanity check, only compile it.
450-
if environment.need_exe_wrapper(self.for_machine) and not environment.has_exe_wrapper():
450+
if self.is_cross and not environment.has_exe_wrapper():
451451
compile_cmdlist += self.get_compile_only_args()
452452

453453
pc = subprocess.Popen(compile_cmdlist, cwd=work_dir)

0 commit comments

Comments
 (0)