Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1abbe7-0001X6-Dm for pgsql-hackers@arkaria.postgresql.org; Thu, 03 Mar 2016 22:22:59 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1abbe6-0003kF-NL for pgsql-hackers@arkaria.postgresql.org; Thu, 03 Mar 2016 22:22:58 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1abbcl-0002Gc-A6 for pgsql-hackers@postgresql.org; Thu, 03 Mar 2016 22:21:35 +0000 Received: from mail-wm0-x230.google.com ([2a00:1450:400c:c09::230]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84) (envelope-from ) id 1abbcc-00069R-PE for pgsql-hackers@postgresql.org; Thu, 03 Mar 2016 22:21:34 +0000 Received: by mail-wm0-x230.google.com with SMTP id l68so54624907wml.0 for ; Thu, 03 Mar 2016 14:21:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding; bh=fBeJnHhioaz/Dt3evoYmfOjJT+iF+5M+FghvKLHMTkI=; b=kgPMDYkixlHw7bB1ZO6DhPDm1vVZC6v5h3l4+u0px36ulC3/FxEs71NpymzI26a7yS aRomBzX9dIYKTjk3bLe28qPx2QAEasbSt1NMUKfG9GQI9qRNY3tTFcQQ5ioYU4w/qlDb SIn4DJyFIyhOem3pmuK/2ED6ZEXhCYH1IN9U3wtsIM0P8tpPvmXSVbqgb6ppAIg6dJIG cxVemQgmXACOr0fwuJDxKps1HLETNETPlYeTi3Yz5EKwFmuq5EThJfEElA7XiU6TzffO KHylT86I71D5iMCGr+vUVNQOXcpbiYhNFtA0d2fPFgosXCzb0wTY0rDs5SCYcOzd7Q9p 8jGQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:cc:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=fBeJnHhioaz/Dt3evoYmfOjJT+iF+5M+FghvKLHMTkI=; b=UjbqQFGK3pH+yr4tylMvFRKlaMI6ZNZEhOSriYSB1flya/XpiUu7iip4ePXoNE5YVq ZBoWWX2/eM6SUn8Xpx8HTdFAe+RHN1YhZ9YbFMcj3dLWfQwANn6eZg+P6o5iZ/+eQzb4 Aqw/+osF6k6TDqNK7p2jnd9HuohQkuw2HxOV0d/DjQD1PgfHoWHuqMrALvZNh/kht86Y 7+v+BItGxKBLl/2eSYUD+DBTiQPczgSPVntzK1IYS5vWMB5KjMKB9d8Dulun4Mc5WZgp bLKbM3PBvn/yMPI5KBJklonApG3PWRtmQHx4xufhQzPuCYHo8WnfTp/r25J0pFjBJTGF rFhQ== X-Gm-Message-State: AD7BkJIcYDC8qiec/vQ6XthjI+4+QzlMmDeCg0zl9Cl7oszHPj8DKRaarh+qBh8NSnQnly3sQnmi9SdG4uUiQUQo0CWwb7eIGHV/eVLa022hPrRLgwp1K3BLIFsTJN/FyWcgA+46PaiWjZaG2BS9C5YMmhxy9l/cjaaF1VKBmnPSI5UM422WwIlhYe5bZzN43A== X-Received: by 10.194.184.171 with SMTP id ev11mr5271057wjc.44.1457043685655; Thu, 03 Mar 2016 14:21:25 -0800 (PST) Received: from [192.168.0.103] (150.123.broadband11.iol.cz. [90.178.123.150]) by smtp.gmail.com with ESMTPSA id ll9sm490242wjc.29.2016.03.03.14.21.23 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 03 Mar 2016 14:21:24 -0800 (PST) Subject: Re: VS 2015 support in src/tools/msvc To: Magnus Hagander , Andrew Dunstan References: <56D871CE.8020709@dunslane.net> Cc: Michael Paquier , PostgreSQL mailing lists From: Petr Jelinek Message-ID: <56D8B8E3.5070708@2ndquadrant.com> Date: Thu, 3 Mar 2016 23:21:23 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org On 03/03/16 18:41, Magnus Hagander wrote: > On Thu, Mar 3, 2016 at 6:18 PM, Andrew Dunstan > wrote: > > On 03/03/2016 09:02 AM, Michael Paquier wrote: > > Microsoft provides a set of VMs that one can use for testing and > Windows 10 is in the set: > https://dev.windows.com/en-us/microsoft-edge/tools/vms/windows/ > I have grabbed one and installed the community version of Visual > Studio 2015 so I think that I am going to be able to compile > Postgres > with VS2015 with a bit of black magic. > > So, would there be interest for a patch on the perl scripts in > src/tools/msvc or are they considered a lost cause? Having a look at > the failures could be done with the cmake work, but it seems a bit > premature to me to look at that for the moment, and having > support for > VS2015 with 9.5 (support for new versions of VS won a backpatch the > last couple of years) would be a good thing I think. > > > > > I am not holding my breath on cmake. Until we have something pretty > solid on that front I'm going to assume it's not happening. If we're > going to support VS2015 (and I think we should) then it should be > supported for all live branches if possible. I'm assuming the > changes would be pretty localized, at least in src/tools/msvc, and > adding a new compile shouldn't break anything with existing compilers. > > > +1. > > Definitely do it for HEAD. > > Then if it gets backpatched is going to depend on the locality I think. > If it's just the build system then it should be no problem, but I > thought Michael also suggested some API changes. If that's so, then it > is going to depend on how invasive those are. But that part should be > done for HEAD regardless, so it's definitely worth the effort to figure > out exactly what it involves. > > Well the source code does not compile on MSVC2015, the perl changes needed are really tiny, there is some code that needs changes to work with 2015, particularly in the locale code-page detection area so it's definitely not just build system. But I think it should be fairly localized and fenced by ifdef anyway. -- Petr Jelinek http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers