-
Notifications
You must be signed in to change notification settings - Fork 49
Description
We're in the process on adding support for new architectures to the Rust compiler with the help of rustc_codegen_gcc.
As a first candidate, we want to get the m68k architecture working which has an LLVM backend which is not 100% feature-complete and has some issues when trying to build the Rust compiler for m68k. Thus, we want to give it a try with rustc_codegen_gcc.
Now, to get the backend working, we need to add m68k support in rustix and linux-raw-sys. While I have experience adding architecture support to the libc crate, I'm not sure how to add architecture support to these two crates. It seems that one has to run bindgen to generate the bindings, but there doesn't seem to be any easy to follow manual for it.
Could you please add instructions on how to add a new architecture so that new contributors don't have to figure this out by trial and error?