-
Notifications
You must be signed in to change notification settings - Fork 119
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
Windows - overriding nbind RTTI setting #32
Comments
Try putting this in your own "msbuild_settings": {
"ClCompile": {
"RuntimeTypeInfo": "true"
}
} I haven't tested it (Windows laptop is at home), but it might work... |
I tired it just inside outermost "{", but it did not override the rtti setting. I also tried inside ...'OS=="win"', { ... but it failed to override there too. |
Try putting the |
Unfortunately, that did not work either. |
OK, now I did some testing and managed to patch the First of all, the lines I mentioned earlier can be at the beginning or end or even inside the Second, the official "RuntimeTypeInfo%": "false" I should probably add percent signs in various other places too. You can modify nbind code locally for now and I'll commit it to the official repo ASAP if it works. |
Another thing I just noticed in my nbind project... it seems all my relative paths included from binding.gyp have an extra ../
Inside my MSVS nbind Properties Pages / C/C++ / General /Additional Include Directories, these are listed as: ../../auto_discovery; ../../Logger; etc |
Do you mean it produces a Visual Studio solution with incorrect paths? Have you used I think the paths are supposed to be relative to |
Yes, the VS sln has incorrect include/lib paths. If I use |
I think |
This is piece of my binding.gyp. It doesn't work in Release build, but node-gyp default setting is Release build.
|
I made a comment on this closed issue about not being to override RTTI... nodejs/node-gyp#26
I'm using nbind on Windows 64-bit (with Electron). I later realized it appears nbind has it's own gypi (nbind.gypi) that seems to replace (or override?) the common.gypi that TooTallNate refers to in the above link. I could not override the default "false" RTTI setting using the methods he posted, but I was able to get past my problem (but not in an ideal way) by modifying nbind.gypi to have "true" (instead of default "false") for RuntimeTypeInformation setting. Is there a way to override this setting without having to modify nbind's infrastructure code?
The text was updated successfully, but these errors were encountered: