Re: windows config.pl question

2020-07-31 Thread Dmitry Markman
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) /

Re: windows config.pl question

2020-07-31 Thread Michael Paquier
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... ]

Re: windows config.pl question

2020-07-31 Thread Dmitry Markman
Hi Michael, I found the problem command cl /? gives different answer if you start that command from c: or from z: (where z: is mapped drive) if current directory is on c: then cl /? returns C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional>cl /? Microsoft (R) C/C++ Optimi

Re: windows config.pl question

2020-07-31 Thread Michael Paquier
On Thu, Jul 30, 2020 at 11:16:01PM -0400, Dmitry Markman wrote: > sorry I meant file src/tools/msvc/Solution.pm > > routine sub GetOpenSSLVersion > > has the follwing line: > > qq("$self->{options}->{openssl}\\bin\\openssl.exe" version 2>&1); > > in our distribution openssl.exe isn’t in the $sel

Re: windows config.pl question

2020-07-30 Thread Dmitry Markman
sorry I meant file src/tools/msvc/Solution.pm routine sub GetOpenSSLVersion has the follwing line: qq("$self->{options}->{openssl}\\bin\\openssl.exe" version 2>&1); in our distribution openssl.exe isn’t in the $self->{options}->{openssl}\bin\ location dm > On Jul 30, 2020, at 10:25 PM,

Re: windows config.pl question

2020-07-30 Thread Dmitry Markman
Hi Michael, thanks a lot I figured it out, UNC works indeed however I found at least 2 problems (at least in our 3p harness) 1. in our configuration openssl executable went to lib (I don’t know why), so I had to change line in Configure script and point to openssl.exe file. Sure I probably can

Re: windows config.pl question

2020-07-30 Thread Michael Paquier
On Thu, Jul 30, 2020 at 06:55:28AM -0400, Dmitry Markman wrote: > icu => , > > is it correct? Exactly. > if it’s correct does build support UNC paths? Yes, these work. One take to be aware of is that the quoting of the paths can be annoying. FWIW, I just use single quotes with normal s

windows config.pl question

2020-07-30 Thread Dmitry Markman
Hi I’d like to add icu/openssl support to my postgresql build on windows documentation says that I have to modify config.pl file, however it's not clear what exactly I have to do config-default.pl for example has the following line icu => undef,# --with-icu= so, if I want to add ic