Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

BUG #16825: When building on Windows, cl /? retrun 'x64' not AMD64 and the build does not create x64 environment - Mailing list pgsql-bugs

From PG Bug reporting form
Subject BUG #16825: When building on Windows, cl /? retrun 'x64' not AMD64 and the build does not create x64 environment
Date
Msg-id 16825-c4f104bcebc67034@postgresql.org
Whole thread Raw
Responses Re: BUG #16825: When building on Windows, cl /? retrun 'x64' not AMD64 and the build does not create x64 environment
List pgsql-bugs
The following bug has been logged on the website:

Bug reference:      16825
Logged by:          Robert Grange
Email address:      robionekenobi@bluewin.ch
PostgreSQL version: 13.1
Operating system:   Windows
Description:

Hi,

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.

better to check like this ?
        $self->{platform} =
          ($output =~ /^\/favor:<.+AMD64/m) ? 'x64' : ($output =~ /.x64$/m) ?
'x64' : 'Win32';

Regards
Robert


pgsql-bugs by date:

Previous
From: Amit Kapila
Date:
Subject: Re: BUG #16812: Logical decoding error
Next
From: PG Bug reporting form
Date:
Subject: BUG #16826: Regex in substring(... from ..) wrong