aboutsummaryrefslogtreecommitdiffstats
path: root/object-file.c
diff options
context:
space:
mode:
authorToon Claes <toon@iotcl.com>2025-12-03 15:53:31 +0100
committerJunio C Hamano <gitster@pobox.com>2025-12-05 11:11:15 +0900
commit4061692ba427af2085e934e0734926f93ea2c823 (patch)
tree73e520bac59fec49bd9d0570d84f1dd87e9ad0e1 /object-file.c
parent574ac610761495b7b7afcced7717188501402925 (diff)
downloadgit-4061692ba427af2085e934e0734926f93ea2c823.tar.gz
meson: use is_cross_build() where possible
In previous commit the first use of meson.can_run_host_binaries() was introduced. This is a guard around compiler.run() to ensure it's actually possible to execute the provided. In other places we've been having the same issue, but here `not meson.is_cross_build()` is used as guard. This does the trick, but it also prevents the code from running even when an exe_wrapper is configured. Switch to using meson.can_run_host_binaries() here as well. There is another place left that still uses `not meson.is_cross_build()`, but here it's a guard around fs.exists(). That function will always run on the build machine, so checking for cross-compilation is still in place here. Signed-off-by: Toon Claes <toon@iotcl.com> Acked-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'object-file.c')
0 files changed, 0 insertions, 0 deletions