From 79f7c482f6745959f7aeea4f7386fceb02ad8889 Mon Sep 17 00:00:00 2001 From: Andres Freund Date: Tue, 6 Dec 2022 11:25:54 -0800 Subject: meson: Basic cygwin support There likely are further issues, but as evidenced by the CI task proposed by Justin in the referenced thread, this suffices to build and run basic tests in cygwin (some fixes for the test infrastructure are needed, but that's independent of the meson aspect). Author: Justin Pryzby Reviewed-by: Andres Freund Discussion: https://postgr.es/m/20221021034040.GT16921@telsasoft.com --- src/port/meson.build | 4 ++++ src/test/regress/meson.build | 2 ++ 2 files changed, 6 insertions(+) (limited to 'src') diff --git a/src/port/meson.build b/src/port/meson.build index c2222696f1b..0ba83cc7930 100644 --- a/src/port/meson.build +++ b/src/port/meson.build @@ -40,6 +40,10 @@ if host_system == 'windows' 'win32setlocale.c', 'win32stat.c', ) +elif host_system == 'cygwin' + pgport_sources += files( + 'dirmod.c', + ) endif if cc.get_id() == 'msvc' diff --git a/src/test/regress/meson.build b/src/test/regress/meson.build index f1adcd9198c..72a23737fa7 100644 --- a/src/test/regress/meson.build +++ b/src/test/regress/meson.build @@ -12,6 +12,8 @@ regress_sources = pg_regress_c + files( host_tuple_cc = cc.get_id() if host_system == 'windows' and host_tuple_cc == 'gcc' host_tuple_cc = 'mingw' +elif host_system == 'cygwin' and host_tuple_cc == 'gcc' + host_tuple_cc = 'cygwin' endif host_tuple = '@0@-@1@-@2@'.format(host_cpu, host_system, host_tuple_cc) -- cgit v1.2.3