Skip to content

Commit a7a63e5

Browse files
Harrison-Boothhackorum
authored andcommitted
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.
1 parent af41c6d commit a7a63e5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/interfaces/ecpg/test/meson.build

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Copyright (c) 2022-2026, PostgreSQL Global Development Group
22

3-
# can't run ecpg to build test dependencies, at least not without an emulator
4-
if meson.is_cross_build()
3+
# We need to run ecpg to build test dependencies.
4+
if not meson.can_run_host_binaries()
55
subdir_done()
66
endif
77

0 commit comments

Comments
 (0)