If you want to support requiring both Release and Debug builds, then I
recommend using node-bindings for that:
https://github.com/TooTallNate/node-bindings/

On Sun, Jul 22, 2012 at 8:07 AM, pconstr <car...@perceptiveconstructs.com>wrote:

> FWIW I always get `build/Release/foo.node` on at least Linux and
>> Windows with node 0.8.2.
>
>
> I usually get 'build/Release/foo.node' (on Linux and OS X) except when
> building the module on a debug build of node, inside a nave virtual
> environment. For some reason nave defaults to installing debug builds of
> node.
> In that case I get `build/Debug/foo.node` (at least on Linux).
>
> I can insist on `Release` by passing `-r` to `node-gyp configure` but I
> feel that's heavy handed.
>
> Is there a way to determine (in Javascript) the directory where the module
> gets built so you can 'require' from the right path?
>
>
>  --
> Job Board: http://jobs.nodejs.org/
> Posting guidelines:
> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
> You received this message because you are subscribed to the Google
> Groups "nodejs" group.
> To post to this group, send email to nodejs@googlegroups.com
> To unsubscribe from this group, send email to
> nodejs+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/nodejs?hl=en?hl=en
>

-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to nodejs@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

Reply via email to