Skip to content

Commit a2255aa

Browse files
committed
Set the Fuchsia ABI to the documented minimum
Fuchsia only supports the RVA22 + vector as its minimum ABI for RISC-V. https://fuchsia.dev/fuchsia-src/contribute/governance/rfcs/0234_riscv_abi_rva22+vector
1 parent f5eca4f commit a2255aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_target/src/spec/targets/riscv64gc_unknown_fuchsia.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ pub(crate) fn target() -> Target {
66
let mut base = base::fuchsia::opts();
77
base.code_model = Some(CodeModel::Medium);
88
base.cpu = "generic-rv64".into();
9-
base.features = "+m,+a,+f,+d,+c,+zicsr,+zifencei".into();
9+
base.features = "+m,+a,+f,+d,+c,+v,+zicsr,+zifencei".into();
1010
base.llvm_abiname = LlvmAbi::Lp64d;
1111
base.max_atomic_width = Some(64);
1212
base.stack_probes = StackProbeType::Inline;

0 commit comments

Comments
 (0)