Override RISC-V CFLAGS in cargo.toml

Makes RISC-V builds work without cc-rs patch, as apparently
CFLAGS take precedence over cc-rs' heuristics
This commit is contained in:
Andrey Turkin 2024-10-31 10:26:26 +03:00
parent fee0b62b09
commit 1f9701e26c

View File

@ -13,3 +13,6 @@ rustflags = []
[target.riscv64gc-unknown-redox]
linker = "riscv64-unknown-redox-gcc"
rustflags = []
[env]
CFLAGS_riscv64gc_unknown_redox="-march=rv64gc -mabi=lp64d"