Skip to content

nw-gyp does not include libc++ headers or libs #168

@d3x0r

Description

@d3x0r

Was working on building a native plugin for nwjs (I use cmake-js actually) but I realized this would at least provide me the v8 and node headers... which works about 99%, when using array buffers, for some reason v8 defers to unique_ptr<BackingStore> which then requires a bit of the libc++ runtime that it was built with....

llvm itself doesn't come with libc++.

I'm actually building on windows, and the llvm that is used is microsofts (though worst comes to worst, I can manually override that)

I found the libc++ that is part of nwjs's build, and at last got the headers (though I was missing __config.site and ___assertions(something)... I found those in some other directories - but the config.site was missing a LLVM_HARDENING_MODE_DEFAULT (I'm sure that's defined in the build somewhere?)

But then, I'm missing .lib parts

Image

the lack of a BackingStore::delete is fairly obnoxious - this is where I've previously also had issues with Node and Visual Studio release and debug runtimes - if the new() is implemented in node (which it is to get a backing store), the delete is implemented locally, so on garbage collection boom because debug cannot deallocate memory allocated by release and vice versa...

Don't know why this backing store is so different to everything else.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions