packages/lang/rust
Jeffery To 54616e7049 rust: Fix compile error for mipsel_24kc+24kf
Currently, rust fails to build for mipsel_24kc+24kf with "opcode not
supported on this processor: mips1 (mips1)" errors when building
libunwind.

Because mipsel_24kc+24kf is hard-float, a certain section of
src/llvm-project/libunwind/src/UnwindRegistersRestore.S is selected to
be compiled; the instructions in this section require MIPS II.

mipsel_24kc+24kf is compiled for MIPS32 Release 2 (MIPS32 is based on
MIPS II), but the C flags used to select this architecture were not
passed to the rust bootstrap (to be passed back to gcc).

This passes the C flags to rust bootstrap to fix this compile error.

This also adds PKG_BUILD_FLAGS:=no-mips16 as attempting to generate
MIPS16 code leads to a different compile error.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-10-30 13:29:33 -07:00
..
patches rust: Fix compile error if build dir and DL_DIR on separate filesystems 2023-10-30 13:29:33 -07:00
Config.in rust: Add option to use sccache 2023-10-11 15:50:24 +08:00
Makefile rust: Fix compile error for mipsel_24kc+24kf 2023-10-30 13:29:33 -07:00
rust-host-build.mk rust: Use make's jobserver when building packages 2023-10-11 15:50:24 +08:00
rust-package.mk rust: Use make's jobserver when building packages 2023-10-11 15:50:24 +08:00
rust-values.mk rust: fix build with glibc, ARM and hard floats 2023-10-16 09:01:43 +08:00