[Scons-users] MSVC 2013
Philipp Kraus
philipp.kraus at tu-clausthal.de
Mon Sep 23 08:03:22 EDT 2013
Hi @all,
I hope I can test this or next week
Phil
Am 23.09.2013 um 04:48 schrieb Bill Deegan:
> Phil,
>
> If you can try it, and let us know if that works on you system, then we can consider the patch.
>
> -Bill
>
>
> On Sat, Sep 21, 2013 at 11:42 AM, Philipp Kraus <philipp.kraus at tu-clausthal.de> wrote:
> Thanks that's nice, but I will wait for the next version. It is only on my test system, so it can wait some times
>
> Phil
>
>
> Am 21.09.2013 um 20:01 schrieb Brian Fitzgerald <bfitz at blizzard.com>:
>
> > Not yet. The file to fix is I believe SCons/Tool/MSCommon/vc.py. There's a handful of arrays that contain the various Visual Studio versions that will be detected, and in the SCons 2.3.0 source, I only see up to 11 which is Visual Studio 2012.
> >
> > It should be easy to update, since I think Visual Studio 2013 is very similar in structure to 2012. But I'm loathe to submit a patch since I haven't yet tried 2013.
> >
> > If you don't mind hacking up your install, here's my best guess. This is completely speculative, based on my experience with previous Visual Studio versions.
> >
> > -------
> >
> > vc.py
> >
> > replace line 132 with this
> >
> > _VCVER = ["12.0", "11.0", "11.0Exp", "10.0", "10.0Exp", "9.0", "9.0Exp","8.0", "8.0Exp","7.1", "7.0", "6.0"]
> >
> > and then insert these lines right after _VCVER_TO_PRODUCT_DIR at line 134
> >
> > '12.0': [
> > r'Microsoft\VisualStudio\12.0\Setup\VC\ProductDir'],
> >
> > -------
> >
> > vs.py
> >
> > add this at line 214
> >
> > # Visual Studio 12
> > # The batch file we look for is in the VC directory,
> > # so the devenv.com executable is up in ..\..\Common7\IDE.
> > VisualStudio('12.0',
> > sdk_version='6.1',
> > hkeys=[r'Microsoft\VisualStudio\12.0\Setup\VS\ProductDir'],
> > common_tools_var='VS120COMNTOOLS',
> > executable_path=r'Common7\IDE\devenv.com',
> > batch_file_path=r'Common7\Tools\vsvars32.bat',
> > default_dirname='Microsoft Visual Studio 12',
> > supported_arch=['x86', 'amd64'],
> > ),
> >
> > -------
> >
> > msvs.py
> >
> > Add this at existing line 1208
> >
> > if self.version_num >= 12.0:
> > self.versionstr = '13.00'
> >
> > Replace existing lines 1314 and 1315 (def PrintSolution body), because I think the current code is wrong, and also to turn the if into an elif.
> >
> > if self.version_num >= 12.0:
> > self.file.write('# Visual Studio 2013\n')
> > elif self.version_num >= 11.0:
> > self.file.write('# Visual Studio 2012\n')
> >
> > -----Original Message-----
> > From: scons-users-bounces at scons.org [mailto:scons-users-bounces at scons.org] On Behalf Of Philipp Kraus
> > Sent: Saturday, September 21, 2013 5:16 AM
> > To: scons-users at scons.org
> > Subject: [Scons-users] MSVC 2013
> >
> > Hello,
> >
> > I have created a test installation with MSVC Ultimate RC 2013 (Win 8) and current stable SCons version (2.3.0). On running a C/C++ build process I get the warning:
> >
> > scons: warning: No version of Visual Studio compiler found - C/C++ compilers most likely not set correctly
> >
> > with MSVC 2012 the build process works.
> > Does SCons support the MSVC 2013 at the moment?
> >
> > Phil
> _______________________________________________
> Scons-users mailing list
> Scons-users at scons.org
> http://four.pairlist.net/mailman/listinfo/scons-users
>
> _______________________________________________
> Scons-users mailing list
> Scons-users at scons.org
> http://four.pairlist.net/mailman/listinfo/scons-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://four.pairlist.net/pipermail/scons-users/attachments/20130923/d41830fe/attachment.html
More information about the Scons-users
mailing list