RE: BUG #16825: When building on Windows, cl /? retrun 'x64' not AMD64 and the build does not create x64 environment

Поиск
Список
Период
Сортировка
От
Тема RE: BUG #16825: When building on Windows, cl /? retrun 'x64' not AMD64 and the build does not create x64 environment
Дата
Msg-id 000001d6ecab$1f6c43c0$5e44cb40$@bluewin.ch
обсуждение исходный текст
Ответ на Re: BUG #16825: When building on Windows, cl /? retrun 'x64' not AMD64 and the build does not create x64 environment  (Juan José Santamaría Flecha <juanjo.santamaria@gmail.com>)
Список pgsql-bugs

Hi,

 

Yes, I see

 

Don’t know why when I’m doing the cl /? In the Visual Studio path of the x64 Native Command Prompt, the response contains all the help (including the /flavor: ….)

 

Once I change to the postgresql\src\tools\msvc for to build, the ‘cl /?’ Only gives back 2 lines and say invalid option.

 

But I also remarked that if you pass ‘cl -?’, it works correctly in both case. Do you think it is possible to change the ‘cl /?’ by ‘cl -?’ ?

 

Thanks for your help

 

Regards

Robert

 

 

From: Juan José Santamaría Flecha <juanjo.santamaria@gmail.com>
Sent: Saturday, January 16, 2021 10:16 PM
To: robionekenobi@bluewin.ch; PostgreSQL mailing lists <pgsql-bugs@lists.postgresql.org>
Subject: Re: BUG #16825: When building on Windows, cl /? retrun 'x64' not AMD64 and the build does not create x64 environment

 

 

 

On Fri, Jan 15, 2021 at 9:21 AM PG Bug reporting form <noreply@postgresql.org> wrote:


in src\tools\msvc\Solution.pm the following test is not sufficient
                $self->{platform} =
                  ($output =~ /^\/favor:<.+AMD64/m) ? 'x64' : 'Win32';
because the cl /? returns:
                Microsoft (R) C/C++ Optimizing Compiler Version 19.28.29336 for x64
                Copyright (C) Microsoft Corporation.  All rights reserved.

 

I see no bug here, that expression is looking for the line: "/favor:<blend|AMD64|INTEL64|ATOM> select processor to optimize for, one of:", which is one of the first printed options.

To make sure this is working in your environment, you should see "Detected hardware platform: x64" when building.

 

Regards,

 

Juan José Santamaría Flecha

 

 

 

В списке pgsql-bugs по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: syntactically correct query gives ERROR: failed to assign all NestLoopParams to plan nodes
Следующее
От: PG Bug reporting form
Дата:
Сообщение: BUG #16828: duplicate results when using ** recursive expression in JSON path