-
Notifications
You must be signed in to change notification settings - Fork 654
Improved VS detection. Fix for GYP_MSVS_VERSION #504
Conversation
Added visual studio 2010/2008 detection and set also the GYP_MSVS_VERSION bsed on the version detected
+100 I can't tell you how many times I've opened up a command prompt to use vcbuild, gotten errors of one kind or another (because GYP_MSVS_VERSION wasn't set), and then had to go and look up the environment variable name from one of the libuv github issues about the problem. Yes, one could set a permanent environment variable, but it's better if the build tool creates the temporary variable since this is only a gyp-specific (and gyp version-specific too) issue. |
/cc @piscisaureus |
I understand that the GYP_MSVS_VERSION fix is important, but what's the point of detecting vs2008 if we can't build with it? |
We set GYP_MSVS_VERSION to 2010 if not found on the environment variables
The point is that is that it should be possible to build also with visual studio 2008 if someone hasn't 2010. There is no particular reason why it shouldn't build (at least that I'm aware of). The only problem from what I understood is with the inttypes http://code.google.com/p/msinttypes/. So this can be easily fixed. But it has nothing to do with the build script that it should just be smart enough to detect the latest available system compiler. It's also a good example on how to add 2012 when it will be supported |
LGTM. For the record, I'd take a patch that adds VS2008 support |
ping @gigi81 |
I'm on it. Waiting for my project manager to approve it. |
I signed and sent the cla. You can merge it now... |
Added visual studio 2010/2008 detection and set also the GYP_MSVS_VERSION bsed on the version detected