-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Use Clang on Windows #2295
Comments
you could just not use node-gyp and do something manual in your package.json I'm not sure gyp has full clang for windows support, does it @nodejs/gyp? it'd just be a bunch of hacks on hacks to make that work for an addon wouldn't it? |
For now, it's kind of buggy, not production ready. Maybe after when we resolve nodejs/node#35433. |
@rvagg could you elaborate on "you could just not use node-gyp and do something manual in your package.json" I can use napi.h in my c++ files and use clang to generate a dll file on windows but I'm confused on what a .node module file is. Is there a way I can convert a dll to one? |
@TrevorDev I can't give you an example off the top of my head, but there are plenty of Node.js addons that don't use node-gyp to build. cmake.js I think is doing their own thing. I've seen plain |
Woot got it working 🚀, thanks for the info. For anyone else, this command worked for me: |
@TrevorDev I'm glad that you made it work. I have been working on a new project called |
How can we use Clang on Windows to build native modules? I want to use a single open-source compiler for all the platforms. Writing compiler flags for each compiler is not efficient, and they also may have different performance.
This might be related to:
The text was updated successfully, but these errors were encountered: