tjfontaine / node-libclang

nodejs bindings for libclang
MIT License
52 stars 27 forks source link

Regenerate lib/dynamic_clang.js for clang-6.0 #17

Open joelpurra opened 4 years ago

joelpurra commented 4 years ago

Forked and fixed quite a few more things: https://github.com/node-ffi-packager/node-libclang


Note: includes commits from previous pull-requests. Should be merged to master one by one, but wanted to showcase the stepwise progress and allow for feedback.


ln --symbolic --force "$(which "llvm-config-6.0")" "${HOME}/bin/llvm-config"
llvm-config --version
LD_LIBRARY_PATH="$(llvm-config --libdir)" node ./lib/generateffi.js

NOTE: move the generated newclang.js to replace lib/dynamic_clang.js.

See

joelpurra commented 4 years ago

Note that support for Elaborated types (#16) added 1200 or so new lines (100% increase) to lib/dynamic_clang.js. This includes enums and functions which were not exported before. Saw similar improvements for another library.

joelpurra commented 3 years ago

Forked and fixed quite a few more things, might help someone: https://github.com/node-ffi-packager/node-libclang