Node-Gyp on OSX

If you have Xcode installed on your Apple laptop, then you should have gotten a C++ compiler in the form of CLang.  You'd think this would work fine with Node-Gyp...and it does.  With a tweak.

Add something like this to the "targets" section of the binding.gyp file:

"xcode_settings": {

Otherwise you'll probably get a litany of errors like

"cannot use typeid with -fno-rtti"


"cannot use 'throw' with exceptions disabled"

by Tagged as: , , 2 Comments