D:\postgres>git status
On branch master
Your branch is up to date with 'origin/master'.

nothing to commit, working tree clean

D:\postgres>mkdir build

D:\postgres>cd build

D:\postgres\build>meson setup --backend vs
The Meson build system
Version: 1.4.1
Source dir: D:\postgres
Build dir: D:\postgres\build
Build type: native build
Project name: postgresql
Project version: 18devel
Activating VS 16.11.41
C compiler for the host machine: cl (msvc 19.29.30156 "���� x64 �� Microsoft (R) C/C++ �Ż������� 19.29.30156 ��")
C linker for the host machine: link link 14.29.30156.0
Auto detected Visual Studio backend: vs2019
Host machine cpu family: x86_64
Host machine cpu: x86_64
Run-time dependency threads found: YES
Library ws2_32 found: YES
Library secur32 found: YES
Program perl found: YES (C:\Users\Huang\AppData\Local\activestate\cache\bin\perl.EXE)
Program python3 found: YES
Program flex found: YES 2.6.4 2.6.4 (C:\msys64\usr\bin\flex.EXE)
Program bison found: YES 3.8.2 3.8.2 (C:\msys64\usr\bin\bison.EXE)
Program sed found: YES (C:\msys64\usr\bin\sed.EXE)
Program prove found: YES (C:\Users\Huang\AppData\Local\activestate\cache\bin\prove.EXE)
Program tar found: YES (C:\Windows\system32\tar.EXE)
Program gzip found: YES (C:\msys64\usr\bin\gzip.EXE)
Program lz4 found: YES (C:\msys64\usr\bin\lz4.EXE)
Program openssl found: YES (C:\msys64\usr\bin\openssl.EXE)
Program zstd found: YES (C:\msys64\usr\bin\zstd.EXE)
Program dtrace skipped: feature dtrace disabled
Program config/missing found: YES (sh D:\postgres\config/missing)
Program cp found: YES (C:\msys64\usr\bin\cp.EXE)
Program xmllint found: YES (C:\msys64\usr\bin\xmllint.EXE)
Program xsltproc found: YES (C:\msys64\usr\bin\xsltproc.EXE)
Program wget found: YES (C:\msys64\usr\bin\wget.EXE)
Program C:\Program Files\Meson\meson.exe found: YES (C:\Program Files\Meson\meson.exe)
Check usable header "bsd_auth.h" : NO
Check usable header "dns_sd.h" : NO
Program fop found: NO
Did not find pkg-config by name 'pkg-config'
Found pkg-config: NO
Found CMake: C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.EXE (3.20.21032501)
Run-time dependency krb5-gssapi found: NO (tried pkgconfig and cmake)
Checking for size of "void *" : 8
Library gssapi64 found: NO
Library krb5_64 found: NO
Library comerr64 found: NO
Library wldap32 found: YES
Compiler for language cpp skipped: feature llvm disabled
Run-time dependency icu-uc found: NO (tried pkgconfig and cmake)
Run-time dependency icu found: NO (tried cmake)
Run-time dependency libxml-2.0 found: NO (tried pkgconfig and cmake)
Run-time dependency libxml2 found: NO (tried cmake)
Run-time dependency libxslt found: NO (tried pkgconfig and cmake)
Run-time dependency libxslt found: NO (tried cmake)
Run-time dependency liblz4 found: NO (tried pkgconfig and cmake)
Run-time dependency lz4 found: NO (tried cmake)
Run-time dependency tcl found: NO (tried pkgconfig)
Library tcl found: NO
Has header "tcl.h" with dependency -ltcl: NO
Run-time dependency pam found: NO (tried pkgconfig and cmake)
Library pam found: NO
Message: disabling optional dependency plperl: perl installation does not have the required modules
..\meson.build:1140: WARNING: <PythonExternalProgram 'C:\\Program Files\\Meson\\meson.exe' -> ['C:\\Program Files\\Meson\\meson.exe']> is not a valid python or it is missing distutils
Program C:\Program Files\Meson\meson.exe found: NO
Run-time dependency readline found: NO (tried pkgconfig and cmake)
Library readline found: NO
Run-time dependency libedit found: NO (tried pkgconfig and cmake)
Library libedit found: NO
Dependency libselinux skipped: feature selinux disabled
Dependency libsystemd skipped: feature systemd disabled
Run-time dependency openssl found: NO (tried pkgconfig, system and cmake)
Has header "openssl/ssl.h" : NO
Library crypto found: NO
Run-time dependency zlib found: NO (tried pkgconfig, cmake and system)
..\meson.build:1480: WARNING: did not find zlib
Message: state-exec: run failed: cannot create new executor meta: cannot get matching bin by path: no matching binary by path "C:\\Users\\Huang\\AppData\\Local\\activestate\\cache\\bin\\perl.EXE"
state-exec: Not user serviceable; Please contact support for assistance.
..\meson.build:1511: WARNING: Additional Perl modules are required to run TAP tests.
Run-time dependency libzstd found: NO (tried pkgconfig and cmake)
Run-time dependency zstd found: NO (tried cmake)
Checking if "c99" compiles: YES
Checking for size of "long" : 4
Checking for size of "long long" : 8
Checking for alignment of "short" : 2
Checking for alignment of "int" : 4
Checking for alignment of "long" : 4
Checking for alignment of "double" : 8
Checking for alignment of "long long int" : 8
Checking for size of "void *" : 8 (cached)
Checking for size of "size_t" : 8
Checking if "__int128" : links: NO
Checking for type "_Bool" : YES
Checking for type "bool" : YES
Checking for size of "bool" : 1
Compiler for C supports arguments -Werror=format: NO
Compiler for C supports arguments -Werror=ignored-attributes: NO
Checking if "format gnu_printf" compiles: NO
Checking if "format __syslog__" compiles: NO
Checking if "format printf" compiles: NO
Compiler for C supports function attribute visibility:default: NO
Checking for function "__builtin_bswap16" : NO
Checking for function "__builtin_bswap32" : NO
Checking for function "__builtin_bswap64" : NO
Checking for function "__builtin_clz" : NO
Checking for function "__builtin_ctz" : NO
Checking for function "__builtin_constant_p" : NO
Checking for function "__builtin_frame_address" : NO
Checking for function "__builtin_popcount" : NO
Checking for function "__builtin_unreachable" : NO
Checking if "__builtin_types_compatible_p" compiles: NO
Checking if "__builtin_mul_overflow" : links: NO
Checking if "__get_cpuid" : links: NO
Checking if "__cpuid" : links: YES
Checking if "__get_cpuid_count" : links: NO
Checking if "__cpuidex" : links: YES
Compiler for C supports arguments -fno-strict-aliasing: NO
Compiler for C supports arguments -fwrapv: NO
Compiler for C supports arguments -fexcess-precision=standard: NO
Compiler for C supports arguments -ftree-vectorize: NO
Compiler for C supports arguments -funroll-loops: NO
Compiler for C supports arguments -Wmissing-prototypes: NO
Compiler for C supports arguments -Wpointer-arith: NO
Compiler for C supports arguments -Werror=vla: NO
Compiler for C supports arguments -Werror=unguarded-availability-new: NO
Compiler for C supports arguments -Wendif-labels: NO
Compiler for C supports arguments -Wmissing-format-attribute: NO
Compiler for C supports arguments -Wimplicit-fallthrough=3: NO
Compiler for C supports arguments -Wcast-function-type: NO
Compiler for C supports arguments -Wshadow=compatible-local: NO
Compiler for C supports arguments -Wformat-security: NO
Compiler for C supports arguments -Wdeclaration-after-statement: NO
Compiler for C supports arguments -Wmissing-variable-declarations: NO
Compiler for C supports arguments -Wunused-command-line-argument: NO
Compiler for C supports arguments -Wcompound-token-split-by-macro: NO
Compiler for C supports arguments -Wformat-truncation: NO
Compiler for C supports arguments -Wstringop-truncation: NO
Compiler for C supports arguments -Wcast-function-type-strict: NO
Compiler for C supports arguments -Wall: YES
Compiler for C supports arguments -g: NO
Compiler for C supports arguments -O2: YES
Checking if "__sync_lock_test_and_set(char)" : links: NO
Checking if "__sync_lock_test_and_set(int32)" : links: NO
Checking if "__sync_val_compare_and_swap(int32)" : links: NO
Checking if "__sync_val_compare_and_swap(int64)" : links: NO
Checking if " __atomic_compare_exchange_n(int32)" : links: NO
Checking if " __atomic_compare_exchange_n(int64)" : links: NO
Checking if "XSAVE intrinsics without -mxsave" : links: YES
Checking if "AVX-512 popcount without -mavx512vpopcntdq -mavx512bw" : links: YES
Checking if "x86_64: popcntq instruction" compiles: NO
Has header "atomic.h" : NO
Has header "copyfile.h" : NO
Has header "crtdefs.h" : YES
Has header "execinfo.h" : NO
Has header "getopt.h" : NO
Has header "ifaddrs.h" : NO
Has header "mbarrier.h" : NO
Has header "stdbool.h" : YES
Has header "strings.h" : NO
Has header "sys/epoll.h" : NO
Has header "sys/event.h" : NO
Has header "sys/personality.h" : NO
Has header "sys/prctl.h" : NO
Has header "sys/procctl.h" : NO
Has header "sys/signalfd.h" : NO
Has header "sys/ucred.h" : NO
Has header "termios.h" : NO
Has header "ucred.h" : NO
Has header "xlocale.h" : NO
Header "fcntl.h" has symbol "F_FULLFSYNC" : NO
Header "unistd.h" has symbol "fdatasync" : NO
Header "fcntl.h" has symbol "posix_fadvise" : NO
Header "string.h" has symbol "strlcat" : NO
Header "string.h" has symbol "strlcpy" : NO
Header "string.h" has symbol "strnlen" : YES
Header "string.h" has symbol "strsep" : NO
Header "sys/uio.h" has symbol "preadv" : NO
Header "sys/uio.h" has symbol "pwritev" : NO
Checking for type "struct option" : NO
Checking if "opterr" : links: NO
Checking if "optreset" : links: NO
Checking for type "socklen_t" : YES
Checking whether type "struct sockaddr" has member "sa_len" : NO
Checking whether type "struct tm" has member "tm_zone" : NO
Checking if "global variable `timezone' exists" compiles: NO
Checking for type "union semun" : NO
Checking if "strerror_r" compiles: YES
Checking if "typeof()" compiles: NO
Checking if "typeof()" compiles: NO
Checking if "typeof()" compiles: NO
Library m found: NO
Library rt found: NO
Library dl found: NO
Library util found: NO
Library getopt found: NO
Library gnugetopt found: NO
Library execinfo found: NO
Checking for function "_configthreadlocale" : YES
Checking for function "backtrace_symbols" : NO
Checking for function "clock_gettime" : NO
Checking for function "copyfile" : NO
Checking for function "copy_file_range" : NO
Checking for function "dlsym" : NO
Checking for function "explicit_bzero" : NO
Checking for function "getifaddrs" : NO
Checking for function "getpeereid" : NO
Checking for function "getpeerucred" : NO
Checking for function "inet_aton" : NO
Checking for function "inet_pton" : NO
Checking for function "kqueue" : NO
Checking for function "mbstowcs_l" : NO
Checking for function "memset_s" : NO
Checking for function "mkdtemp" : NO
Checking for function "posix_fadvise" : NO
Checking for function "posix_fallocate" : NO
Checking for function "ppoll" : NO
Checking for function "pthread_barrier_wait" : NO
Checking for function "pthread_barrier_wait" with dependency threads: NO
Checking for function "pthread_is_threaded_np" : NO
Checking for function "pthread_is_threaded_np" with dependency threads: NO
Checking for function "setproctitle" : NO
Checking for function "setproctitle_fast" : NO
Checking for function "shm_open" : NO
Checking for function "shm_unlink" : NO
Checking for function "shmget" : NO
Checking for function "socket" : NO
Checking for function "strchrnul" : NO
Checking for function "strerror_r" : NO
Checking for function "strerror_r" with dependency threads: NO
Checking for function "strlcat" : NO
Checking for function "strlcpy" : NO
Checking for function "strnlen" : YES
Checking for function "strsep" : NO
Checking for function "strsignal" : NO
Checking for function "sync_file_range" : NO
Checking for function "syncfs" : NO
Checking for function "uselocale" : NO
Checking for function "wcstombs_l" : NO
Checking for function "syslog" : NO
Program msgfmt found: YES (C:\msys64\usr\bin\msgfmt.EXE)
Check usable header "libintl.h" : NO
Program src/tools/rcgen found: YES (C:\Program Files\Meson\meson.exe runpython D:\postgres\src/tools/rcgen)
Program rc found: YES (C:\Program Files (x86)\Windows Kits\10\bin\10.0.19041.0\x64\rc.EXE)
Configuring pg_config_ext.h using configuration
Configuring pg_config.h using configuration
Compiler for C supports arguments -fPIC: NO
Compiler for C supports link arguments -Wl,--as-needed: NO
Configuring pg_config_paths.h using configuration
Windows resource compiler: Microsoft (R) Windows (R) Resource Compiler Version 10.0.10011.16384
Configuring ecpg_config.h using configuration
Program strip found: NO
Compiler for C supports link arguments -Wl,--export-dynamic: NO
Program ar found: NO
Program gawk found: YES (C:\msys64\usr\bin\gawk.EXE)
Configuring Makefile.global using configuration
Configuring version.sgml using configuration
Program pandoc found: NO
Program db2x_xsltproc found: NO
Program db2x_texixml found: NO
Program makeinfo found: NO
Message: checking for file conflicts between source and build directory
Program git found: YES (C:\Program Files\Git\cmd\git.EXE)
Program bzip2 found: YES (C:\msys64\usr\bin\bzip2.EXE)
Build targets in project: 436
NOTICE: Future-deprecated features used:
 * 0.55.0: {'ExternalProgram.path'}
 * 0.56.0: {'meson.build_root', 'meson.source_root'}
 * 0.64.0: {'copy arg in configure_file'}

postgresql 18devel

  Data layout
    data block size        : 8 kB
    WAL block size         : 8 kB
    segment size           : 1 GB

  System
    host system            : windows x86_64
    build system           : windows x86_64

  Compiler
    linker                 : link
    C compiler             : msvc 19.29.30156

  Compiler Flags
    CPP FLAGS              : /DWIN32 /DWINDOWS /D__WINDOWS__ /D__WIN32__ /D_CRT_SECURE_NO_DEPRECATE /D_CRT_NONSTDC_NO_DEPRECATE
    C FLAGS, functional    :
    C FLAGS, warnings      : /wd4018 /wd4244 /wd4273 /wd4101 /wd4102 /wd4090 /wd4267
    C FLAGS, modules       :
    C FLAGS, user specified:
    LD FLAGS               : /INCREMENTAL:NO /STACK:4194304 /NOEXP

  Programs
    bison                  : C:\msys64\usr\bin\bison.EXE 3.8.2
    dtrace                 : NO
    flex                   : C:\msys64\usr\bin\flex.EXE 2.6.4

  External libraries
    bonjour                : NO
    bsd_auth               : NO
    docs                   : YES
    docs_pdf               : NO
    gss                    : NO
    icu                    : NO
    ldap                   : YES
    libxml                 : NO
    libxslt                : NO
    llvm                   : NO
    lz4                    : NO
    nls                    : NO
    openssl                : NO
    pam                    : NO
    plperl                 : NO
    plpython               : NO
    pltcl                  : NO
    readline               : NO
    selinux                : NO
    systemd                : NO
    uuid                   : NO
    zlib                   : NO
    zstd                   : NO

  User defined options
    backend                : vs


D:\postgres\build>postgresql.sln
