pgsql: Allow running src/tools/msvc/mkvcbuild.pl under not Windows

From: Peter Eisentraut <peter(at)eisentraut(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Allow running src/tools/msvc/mkvcbuild.pl under not Windows
Date: 2020-02-21 19:58:43
Message-ID: E1j5ERf-0003uM-Od@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers pgsql-hackers

Allow running src/tools/msvc/mkvcbuild.pl under not Windows

This to allow verifying the MSVC build file generation without having
to have Windows.

To do this, we avoid Windows-specific Perl modules and don't run the
"cl" compiler or "nmake". The resulting build files won't actually be
completely correct, but it's useful enough.

Reviewed-by: Michael Paquier <michael(at)paquier(dot)xyz>
Reviewed-by: Julien Rouhaud <rjuju123(at)gmail(dot)com>
Discussion: https://www.postgresql.org/message-id/flat/d73b2c7b-f081-8357-8422-7564d55f1aac%402ndquadrant.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/73c8596488fd5fd619991f56dae5d22f551b06d9

Modified Files
--------------
src/tools/msvc/Mkvcbuild.pm | 6 ++++--
src/tools/msvc/Project.pm | 2 +-
src/tools/msvc/Solution.pm | 17 ++++++++++++-----
src/tools/msvc/VSObjectFactory.pm | 31 +++++++++++++++++++------------
4 files changed, 36 insertions(+), 20 deletions(-)

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Eisentraut 2020-02-21 21:03:26 pgsql: Fix perlcritic warnings
Previous Message Tom Lane 2020-02-21 19:31:40 pgsql: Assume that we have utime() and <utime.h>.

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Eisentraut 2020-02-21 20:04:02 Re: allow running parts of src/tools/msvc/ under not Windows
Previous Message Tom Lane 2020-02-21 19:46:11 Re: Removing obsolete configure checks