Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Set the correct MSVS environment on Win32 #3

Merged
merged 2 commits into from
Aug 28, 2013
Merged

Set the correct MSVS environment on Win32 #3

merged 2 commits into from
Aug 28, 2013

Conversation

anaisbetts
Copy link
Contributor

This fixes script/bootstrap.py on Windows by setting the correct VS version being sent to node-gyp, found via nodejs/node-gyp#231

@@ -12,6 +12,8 @@ require 'colors'
config = require './config'
Command = require './command'

isWin32 = !!process.platform.match(/^win/)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, maybe throw this in config.coffee as isWin32(), that way we could easily spy and mock it in the specs if we wanted to.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can do that

anaisbetts pushed a commit that referenced this pull request Aug 28, 2013
Set the correct MSVS environment on Win32
@anaisbetts anaisbetts merged commit d3c7b2e into master Aug 28, 2013
@kevinsawicki kevinsawicki deleted the apm-vs2012 branch August 29, 2013 17:58
@zcbenz
Copy link
Contributor

zcbenz commented Aug 31, 2013

@xpaulbettsx I think we should not make--msvs_version=2012 the default option, instead we should add a command line switch for it. User who needs this option can manually tell apm to add it, because it may happen that people only has VS2010 installed (like me), and following error would happen:

Installing node@0.10.15 ✓
Installing modules ✗

> atom@0.1.0 preinstall C:\cygwin\home\zcbenz\codes\raven
> true


> int64-native@0.2.0 install C:\cygwin\home\zcbenz\codes\raven\node_modules\int64-native
> node-gyp configure && node-gyp build


C:\cygwin\home\zcbenz\codes\raven\node_modules\int64-native>node "C:\cygwin\home\zcbenz\codes\raven\vendor\apm\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" configure

C:\cygwin\home\zcbenz\codes\raven\node_modules\int64-native>node "C:\cygwin\home\zcbenz\codes\raven\vendor\apm\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" build
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Platforms\Win32\Microsoft.Cpp.Win32.Targets(511,5): error MSB8008: Specified platform toolset (v110) is not installed or invalid. Please make sure that a supported PlatformToolset value is selected. [C:\cygwin\home\zcbenz\codes\raven\node_modules\int64-native\build\Int64.vcxproj]
npm http GET https://atom.iriscouch.com/registry/_design/app/_rewrite/int64-native
npm http GET https://atom.iriscouch.com/registry/_design/app/_rewrite/int64-native
npm http GET https://atom.iriscouch.com/registry/_design/app/_rewrite/int64-native
npm http GET https://registry.npmjs.org/int64-native
npm http GET https://registry.npmjs.org/int64-native
npm http GET https://registry.npmjs.org/int64-native
gypnpm ERR! weird error 1
npm

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants