Skip to content

Commit 768df41

Browse files
committed
Add .attribute arch, "rv32e"
The LLVM spurious error affects us too :)
1 parent 7a292f3 commit 768df41

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

riscv-rt/src/asm.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ cfg_global_asm!(
3333
"// Provisional patch to avoid LLVM spurious errors when compiling in release mode.",
3434
#[cfg(all(riscv32, riscvm))]
3535
".attribute arch, \"rv32im\"",
36+
#[cfg(all(riscv32, riscve))]
37+
".attribute arch, \"rv32e\"",
3638
#[cfg(all(riscv64, riscvm, not(riscvg)))]
3739
".attribute arch, \"rv64im\"",
3840
#[cfg(all(riscv64, riscvg))]

0 commit comments

Comments
 (0)