From fab10f6b08b1ae1b4c1050a80b2bbe109a3c2aed Mon Sep 17 00:00:00 2001 From: Harrison Booth Date: Fri, 24 Jul 2026 09:55:17 -0500 Subject: [PATCH v1 2/2] meson: Run ECPG tests in runnable cross builds The ECPG tests need to run the host ecpg binary to generate test dependencies. They are currently disabled for every cross build, even when the build machine can run host binaries directly or through an executable wrapper. Use meson.can_run_host_binaries() to skip the tests only when host binaries cannot run. The preceding patch makes the regression test harness honor an executable wrapper. --- src/interfaces/ecpg/test/meson.build | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/interfaces/ecpg/test/meson.build b/src/interfaces/ecpg/test/meson.build index 7f5b950c186..9397dd4d6f7 100644 --- a/src/interfaces/ecpg/test/meson.build +++ b/src/interfaces/ecpg/test/meson.build @@ -1,7 +1,7 @@ # Copyright (c) 2022-2026, PostgreSQL Global Development Group -# can't run ecpg to build test dependencies, at least not without an emulator -if meson.is_cross_build() +# We need to run ecpg to build test dependencies. +if not meson.can_run_host_binaries() subdir_done() endif -- 2.53.0.windows.2