Compile using the Visual Studio 2019

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Compile using the Visual Studio 2019

Juan José Santamaría Flecha
Hello,

While trying to setup a test environment under Windows I have managed to build the source using the latest Visual Studio 2019 [1].

It's only been tested in this one environment, Windows 10 x64, but the changes seem tool dependant only.

Regards,

Juan José Santamaría Flecha

[1] https://visualstudio.microsoft.com/vs/

build_using_msvc2019.patch (6K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Compile using the Visual Studio 2019

David Rowley-3
On Tue, 21 May 2019 at 05:46, Juan José Santamaría Flecha
<[hidden email]> wrote:
> While trying to setup a test environment under Windows I have managed to build the source using the latest Visual Studio 2019 [1].
>
> It's only been tested in this one environment, Windows 10 x64, but the changes seem tool dependant only.

Thanks for doing work on this.  Just to let you know there's already
some work pending to do this in
https://www.postgresql.org/message-id/CAJrrPGegJG_gtQBMQffCNBny3i3fpe8QfE0DUkPSQEZf-FoY9w@...

It's marked in the next commitfest entry in
https://commitfest.postgresql.org/23/2122/

Maybe you could take a look at that and maybe sign up to review it?

--
 David Rowley                   http://www.2ndQuadrant.com/
 PostgreSQL Development, 24x7 Support, Training & Services


Reply | Threaded
Open this post in threaded view
|

Re: Compile using the Visual Studio 2019

Michael Paquier-2
On Tue, May 21, 2019 at 02:37:10PM +1200, David Rowley wrote:
> Maybe you could take a look at that and maybe sign up to review it?

Yes, that would be great.  New VS environments are a pain to set up so
any input is welcome.

-       # visual 2017 hasn't changed the nmake version to 15, so still
          using the older version for comparison.
+       # visual 2019 hasn't changed the nmake version to
          15, so still using the older version for comparison.
        if ($major > 14)

I have not checked the other patch and I am pretty sure that you are
doing the same thing.  Still, for the notice, this comment update is
incorrect as VS 2017 also marks nmake with version 15.
--
Michael

signature.asc (849 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Compile using the Visual Studio 2019

Juan José Santamaría Flecha

On Tue, May 21, 2019 at 7:36 AM Michael Paquier <[hidden email]> wrote:
On Tue, May 21, 2019 at 02:37:10PM +1200, David Rowley wrote:
> Maybe you could take a look at that and maybe sign up to review it?

Yes, that would be great.  New VS environments are a pain to set up so
any input is welcome.


At some point I did check, but that previous work went unnoticed. Now that I have a better knowledge about building on Windows I will take a look at it.
 

I have not checked the other patch and I am pretty sure that you are
doing the same thing.  Still, for the notice, this comment update is
incorrect as VS 2017 also marks nmake with version 15.


I don't want to keep this thread going any further, so I will check the other patch and see how it goes through this point.

Regards,

Juan José Santamaría Flecha