Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit79f7c48

Browse files
committed
meson: Basic cygwin support
There likely are further issues, but as evidenced by the CI task proposed byJustin in the referenced thread, this suffices to build and run basic tests incygwin (some fixes for the test infrastructure are needed, but that'sindependent of the meson aspect).Author: Justin Pryzby <pryzby@telsasoft.com>Reviewed-by: Andres Freund <andres@anarazel.de>Discussion:https://postgr.es/m/20221021034040.GT16921@telsasoft.com
1 parenta61b1f7 commit79f7c48

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

‎meson.build

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,10 @@ if host_system == 'aix'
211211

212212
elif host_system=='cygwin'
213213
cppflags+='-D_GNU_SOURCE'
214+
dlsuffix='.dll'
215+
mod_link_args_fmt= ['@0@']
216+
mod_link_with_name='lib@0@.exe.a'
217+
mod_link_with_dir='libdir'
214218

215219
elif host_system=='darwin'
216220
dlsuffix='.dylib'
@@ -2310,8 +2314,8 @@ gnugetopt_dep = cc.find_library('gnugetopt', required: false)
23102314
# (i.e., allow '-' as a flag character), so use our version on those platforms
23112315
# - We want to use system's getopt_long() only if the system provides struct
23122316
# option
2313-
always_replace_getopt= host_systemin ['windows','openbsd','solaris']
2314-
always_replace_getopt_long= host_system=='windows'ornot cdata.has('HAVE_STRUCT_OPTION')
2317+
always_replace_getopt= host_systemin ['windows','cygwin','openbsd','solaris']
2318+
always_replace_getopt_long= host_systemin ['windows','cygwin']ornot cdata.has('HAVE_STRUCT_OPTION')
23152319

23162320
# Required on BSDs
23172321
execinfo_dep= cc.find_library('execinfo',required:false)

‎src/port/meson.build

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@ if host_system == 'windows'
4040
'win32setlocale.c',
4141
'win32stat.c',
4242
)
43+
elif host_system=='cygwin'
44+
pgport_sources+=files(
45+
'dirmod.c',
46+
)
4347
endif
4448

4549
if cc.get_id()=='msvc'

‎src/test/regress/meson.build

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ regress_sources = pg_regress_c + files(
1212
host_tuple_cc= cc.get_id()
1313
if host_system=='windows'and host_tuple_cc=='gcc'
1414
host_tuple_cc='mingw'
15+
elif host_system=='cygwin'and host_tuple_cc=='gcc'
16+
host_tuple_cc='cygwin'
1517
endif
1618
host_tuple='@0@-@1@-@2@'.format(host_cpu, host_system, host_tuple_cc)
1719

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp