pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Paquier <michael@paquier.xyz>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Switch "cl /?" to "cl /help" in MSVC scripts for platform detect
Date: Thu, 21 Jan 2021 02:08:27 +0000
Message-ID: <E1l2POd-0006sg-MG@gemulon.postgresql.org> (raw)

Switch "cl /?" to "cl /help" in MSVC scripts for platform detection

"cl /?" produces a different output if run on a real or a virtual drive
(this can be set with a simple subst command), causing an error in the
MSVC scripts if building on a virtual drive because the platform to use
cannot be detected.

"cl /help", on the contrary, produces a consistent output if used on a
real or virtual drive.  Changing to "/help" allows the compilation to
work with a virtual drive as long as the top of the code repository is
part of the drive, without impacting the build on real drives.

Reported-by: Robert Grange
Author: Juan José Santamaría Flecha
Discussion: https://postgr.es/m/16825-c4f104bcebc67034@postgresql.org

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/733d670073efd2c3a9df07c225006668009ab793

Modified Files
--------------
src/tools/msvc/Solution.pm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)



Message-ID: <E1l2POd-0006sg-MG@gemulon.postgresql.org>
Permalink:  ../E1l2POd-0006sg-MG@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1l2POd-0006sg-MG@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: michael@paquier.xyz
  Subject: Re: pgsql: Switch "cl /?" to "cl /help" in MSVC scripts for platform detect
  In-Reply-To: <E1l2POd-0006sg-MG@gemulon.postgresql.org>
  References: <E1l2POd-0006sg-MG@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox