Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

npm-gyp on Windows should allow build tools to be configured to use gcc #402

Closed
stupid-genius opened this issue Feb 17, 2014 · 6 comments
Closed

Comments

@stupid-genius
Copy link

Whenever feasible, I refuse to use MS compilers. Having npm-gyp use the same compiler on all platforms seems easier to maintain anyway.

@JayBeavers
Copy link
Contributor

Please go talk to the Gyp team. node-gyp is a wrapper API around the python Gyp library. The change to use GCC on Windows would have to be made at the Gyp level.

You can file an issue on Gyp here:

https://code.google.com/p/gyp/issues/list

@stupid-genius
Copy link
Author

Thanks. In that case, is it possible to configure npm to use something other than npm-gyp? (read: configure--not re-write) Could someone potentially write an npm-gcc module to use with npm?

@JayBeavers
Copy link
Contributor

Best direction I could put you on would be to investigate converting gyp project configuration files into cmake project configuration files and going from there. CMake is an alternative to gyp and I believe it supports gcc on windows.

@TooTallNate
Copy link
Contributor

@stupid-genius The offical node.exe binary is compiled with MSVS, and therefore any binary addons that get compiled for it must also be compiled via MSVS. We can't mix and match the compilers when they are meant to be interacting with each other via dlopen() (well, the Windows equivalent of that).

@stupid-genius
Copy link
Author

Well, that sucks, but thanks for the answers.

@webdesus webdesus mentioned this issue Jun 26, 2014
@tohagan
Copy link

tohagan commented Aug 23, 2014

I've just posted this request to the Google GYP team ...

https://code.google.com/p/gyp/issues/detail?id=448

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

No branches or pull requests

4 participants