Open Redfire75369 opened 2 years ago
I actually strongly suspect that glue.rs has not been automatically generated for many years, and is only updated by hand.
Oh, that would certainly explain it.
It seems gen.py
was last updated 10 years ago, which explains the wrong command line arguments and the usage of gcc 4.8.
So far, the furthest I've gotten is this, but that seems to maybe generate a bunch of stuff that's not needed?
// cwd: ./src
bindgen jsglue.cpp --allow-file jsglue.cpp -- -std=c++17 -I ../target/debug/build/mozjs-1d605e44d5141b22/out -I ../target/debug/build/mozjs_sys-253b4187986dd3b4/out/build/dist/include
I was looking to add a wrapper for
JSExternalStringCallbacks
so it could be used for rust, and I've updatedjsglue.cpp
for it.I was wondering how I can update
glue.rs
since it seems to be automatically generated. I was looking at the instructions in comments ingen.py
but it seems to be very outdated.I think it would be useful if we updated this so that anyone can modify
jsglue.cpp
easily.Here's the change I was trying to make: https://github.com/Redfire75369/rust-mozjs/commit/689394068b6318da63dca7444fe896fc455d064e