nwjs / nw-gyp

native addon build tool for node-webkit

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

rocksdb can't be compiled with nw-gyp due to embedded clang missing mm_malloc.h on Windows

kakysha opened this issue · comments

Trying to recompile rocksdb for NW.js 0.53.0 using npx nw-gyp rebuild --build-from-source --runtime=node-webkit --target_arch=x64 --target=0.53.0 --verbose -j 8 on windows 11 and it fails while some rocksdb headers couldn't find include <mm_malloc.h> file.

I tried un-defying __clang__ directive, so the clang-cl.exe won't require that specific LLVM versions of malloc header, but then it fails during link step with bunch of errors about SSE symbols being undefined lld-link : error : undefined symbol: _mm_loadu_si128.

I use vs2015 build tools with windows 8 SDK. Other projects like sqlite3 and secp256k1 did compile successfully.