tsekityam / gyp

Automatically exported from code.google.com/p/gyp
0 stars 0 forks source link

Support for Visual C++ Compiler Nov 2013 CTP (CTP_Nov2013) #430

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I'm hoping to get gyp working against an alternate set of msvs 2013 compiler 
tools. The reason is that Microsoft has released 
http://www.microsoft.com/en-us/download/details.aspx?id=41151 with better 
support for C++11 features.

It looks like there are at least two main problems to getting this working:

1. `_CreateVersion` in `MSVSVersion.py` needs a new entry for `2013CTP` or 
something like that
2. The path setup in `class VisualStudioVersion` will not work for for a CTP 
release like this because it does not have the same folder structure as a full 
Visual Studio release.

The folder structure looks like:

C:\Program Files (x86)\Microsoft Visual C++ Compiler Nov 2013 CTP\
    bin\
         amd64\
         amd64_x86
         x86_amd64\
         c1.dll
         c2.dll
         cl.exe
         ...
    crt\
    include\
    lib\

Has anyone tried getting this working yet? Should this be able to work with 
some minor changes to gyp?

Original issue reported on code.google.com by d...@mapbox.com on 22 May 2014 at 8:14

GoogleCodeExporter commented 9 years ago
With a little more digging I think I got this working. It is as simple as 
passing `"msbuild_toolset":"CTP_Nov2013"` in the `target_defaults` like 
https://github.com/mapbox/variant/blob/64f8fb4473f3ef6f7117dc02f02a20645e415b72/
common.gypi#L6

Original comment by d...@mapbox.com on 22 May 2014 at 8:48