README.adoc

October 22, 2023 ยท View on GitHub

= Cross libgccjit compilers for use with rustc_codegen_gcc

== Dependencies

This requires the git version of https://github.com/crosstool-ng/crosstool-ng[crosstool-ng], at least if you want to build for m68k, since it's not released in the 1.26.0 version.

== Build instructions

  1. Install crosstool-ng.
  2. Move to the directory containing the crosstool-ng config of your choice: cd m68k-unknown-linux-gnu
  3. Generate the config from the default config: ct-ng defconfig. This will generate a .config file used in the next step.
  4. Build the compiler: ct-ng build.
  5. The compiler will be in $HOME/x-tools/m68k-unknown-linux-gnu/bin.