Open arcanis opened 7 years ago
You're right. This is also related to issue #32. The default flags need to be provided somewhere to make usage easier, but there's three options for handling this better:
autogypi
so its --init-gyp
command adds the flags to the new project's binding.gyp
, so they can be removed from the main nbind.gypi
.How is this going?
I'm currently having issue with RTTI with msvc.
Nothing I can do to override RunTimeTypeInfo
option.
I can manually edit nbind.gypi
, change RunTimeTypeInfo
to true and compiling alright.
Because I intend to publish my package, do I need to write a script to automatically do that before every install routine (configure && build) or will you guys have a solution for this problem later?
Because nbind.gypi contains a bunch of various flags (such as
-std=c++11
), setting our own flags is actually a bit painful: one has to create another gypi file, include it afterauto.gypi
, and add a truthy condition inside (such as1==1
).Is it really nbind's task to set the standard and optimization flags ? Shouldn't setting these flags be left to the user ? Or at least hidden behind a node-gyp variable ?