Skip to content

Instantly share code, notes, and snippets.

@sajattack
Created September 8, 2021 16:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sajattack/701a8d677ec01fe51b423ebbfa013c22 to your computer and use it in GitHub Desktop.
Save sajattack/701a8d677ec01fe51b423ebbfa013c22 to your computer and use it in GitHub Desktop.
cargo config for riscv32gc std
[unstable]
build-std = ["std", "panic_abort"]
build-std-features = ["panic_immediate_abort"]
[build]
target= "riscv32gc-unknown-linux-gnu"
rustflags = [
"-C", "link-arg=-march=rv32gc",
"-C", "link-arg=-mabi=ilp32d",
"-C", "linker-flavor=gcc"
]
[target.riscv32gc-unknown-linux-gnu]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment