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
* Some shells, like fish, don't define the environment variable `$MACHTYPE`.
126
+
* Add `CFLAGS="-Wno-error=attributes -g -O2"` at the end of the configure command for building glibc (`CFLAGS="-Wno-error=attributes -Wno-error=array-parameter -Wno-error=stringop-overflow -Wno-error=array-bounds -g -O2"` for glibc 2.31, which is useful for Debian).
127
+
128
+
#### Configuring rustc_codegen_gcc
129
+
130
+
* Set `TARGET_TRIPLE="m68k-unknown-linux-gnu"` in config.sh.
131
+
* Since rustc doesn't support this architecture yet, set it back to `TARGET_TRIPLE="mips-unknown-linux-gnu"` (or another target having the same attributes). Alternatively, create a [target specification file](https://book.avr-rust.com/005.1-the-target-specification-json-file.html) (note that the `arch` specified in this file must be supported by the rust compiler).
132
+
* Set `linker='-Clinker=m68k-linux-gcc'`.
133
+
* Set the path to the cross-compiling libgccjit in `gcc_path`.
134
+
* Disable the 128-bit integer types if the target doesn't support them by using `let i128_type = context.new_type::<i64>();` in `context.rs` (same for u128_type).
135
+
* (might not be necessary) Disable the compilation of libstd.so (and possibly libcore.so?).
0 commit comments