You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 12, 2022. It is now read-only.
I was looking to add a wrapper for JSExternalStringCallbacks so it could be used for rust, and I've updated jsglue.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 in gen.py but it seems to be very outdated.
# To generate jsglue:
# DYLD_LIBRARY_PATH=~/versioned/rust-mozilla/build/llvm/x86_64-apple-darwin/Release+Asserts/lib/ ~/versioned/rust-bindgen/bindgen ./jsglue.c -I ../../build/src/mozjs/dist/include/ -match glue > glue.rs
# jdm used
# LD_LIBRARY_PATH=~/sdb/rust/build/llvm/x86_64-unknown-linux-gnu/Release+Asserts/lib/ ~/sdb/rust-bindgen/bindgen ./jsglue.c -I ../../build/src/mozjs/dist/include/ -isystem /usr/lib/gcc/x86_64-redhat-linux/4.7.0/include/ -match glue >glue.rs
# on Fedora 17
#
# and remember to mark all generated functions as #[rust_stack]
I think it would be useful if we updated this so that anyone can modify jsglue.cpp easily.
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.
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: Redfire75369@6893940
The text was updated successfully, but these errors were encountered: