Re: windows config.pl question

From: Dmitry Markman <dmarkman(at)mac(dot)com>
To: Michael Paquier <michael(at)paquier(dot)xyz>
Cc: pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Re: windows config.pl question
Date: 2020-08-01 03:05:25
Message-ID: 75A75DED-32A7-48C2-8005-16B41B36EFDF@mac.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

cl -help works the same

on z: or on c:

and it’s equivalent to the output of cl /? from c:

Z:\>cat cl_out.txt | grep favor
/O1 maximum optimizations (favor space) /O2 maximum optimizations (favor speed)
/Os favor code space /Ot favor code speed
/Ox optimizations (favor speed)
/favor:<blend|AMD64|INTEL64|ATOM> select processor to optimize for, one of:

where cl_out.txt is result cl -help > cl_out.txt

> On Jul 31, 2020, at 10:58 PM, Michael Paquier <michael(at)paquier(dot)xyz> wrote:
>
> On Fri, Jul 31, 2020 at 10:41:46PM -0400, Dmitry Markman wrote:
>> but if I issue that command if the current folder is on z:
>>
>> Z:\>cl /?
>> Microsoft (R) C/C++ Optimizing Compiler Version 19.16.27042 for x64
>> Copyright (C) Microsoft Corporation. All rights reserved.
>>
>> usage: cl [ option... ] filename... [ /link linkoption... ]
>>
>> from other hand
>
> Interesting. We rely on the presence of "favor:" in the output to
> determine which platform to use, aka x64 or Win32.
>
>> cl -help
>>
>> returns consistent answer from c: or from z:
>>
>> so platform wasn’t identified properly if build started from z:
>
> What's the output of cl -help on "z:" in this case? Is the exact same
> output as "cl /?" or "cl -help" on c: generated? I have to admit that
> I don't really know why things would behave this way, but Windows is a
> platform full of undiscovered mysteries, and I have never seen the
> output of cl being an issue even for some of my company work, which
> uses stuff much more fancy than the normal way of compiling on
> Windows, requiring me to patch a bit the scripts of src/tools/msvc/ in
> a different way.
> --
> Michael

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Bharath Rupireddy 2020-08-01 03:13:32 Can a background worker exist without shared memory access for EXEC_BACKEND cases?
Previous Message Michael Paquier 2020-08-01 02:58:53 Re: windows config.pl question