Open qinsoon opened 1 year ago
Currently no Julia build flag is passed to bindgen. So bindgen treats all the conditional compilation flags as if they are not defined (unless defined on the system). We also removed compilation flags to make mmtk_julia_types.h
work for our build environment, which means our current mmtk_julia_types.h
is not portable.
Currently we generate a Rust version for
mmtk_julia_types.h
using rust-bindgen, and check in the generated code. This introduces an issue for portability, as the code generation depends on the host we run bindgen. It is not a problem for now, as we only develop and test on one platform x86_64 linux. When we start considering about portability for the binding, we should run bindgen using Rust build script (build.rs).