]> git.ipfire.org Git - thirdparty/postgresql.git/commitdiff
meson: Fix meson warning
authorPeter Eisentraut <peter@eisentraut.org>
Sun, 22 Jun 2025 12:13:46 +0000 (14:13 +0200)
committerPeter Eisentraut <peter@eisentraut.org>
Sun, 22 Jun 2025 12:15:40 +0000 (14:15 +0200)
    WARNING: You should add the boolean check kwarg to the run_command call.
             It currently defaults to false,
             but it will default to true in meson 2.0.

Introduced by commit bc46104fc9a.

(This only happens in the msvc branch.  All the other run_command
calls are ok.)

Reviewed-by: Andres Freund <andres@anarazel.de>
Discussion: https://www.postgresql.org/message-id/flat/42e13eb0-862a-441e-8d84-4f0fd5f6def0%40eisentraut.org

meson.build

index a8b0f1ecc9fa7fd3f1523382a8d6b6585f7aa763..1367081ed2708240865fdc29e8e02381c3a9c850 100644 (file)
@@ -1061,7 +1061,7 @@ if not perlopt.disabled()
       if cc.get_id() == 'msvc'
         # prevent binary mismatch between MSVC built plperl and Strawberry or
         # msys ucrt perl libraries
-        perl_v = run_command(perl, '-V').stdout()
+        perl_v = run_command(perl, '-V', check: false).stdout()
         if not perl_v.contains('USE_THREAD_SAFE_LOCALE')
           perl_ccflags += ['-DNO_THREAD_SAFE_LOCALE']
         endif