Skip to content

Commit 3f6b70c

Browse files
lewisfmtropicaaal
authored andcommitted
ensure arm arch before adjusting VEXos system ABI to aapcs
1 parent 9522587 commit 3f6b70c

File tree

1 file changed

+3
-1
lines changed
  • compiler/rustc_target/src/spec

1 file changed

+3
-1
lines changed

compiler/rustc_target/src/spec/mod.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2817,7 +2817,9 @@ impl Target {
28172817
Abi::System { unwind } if self.is_like_windows && self.arch == "x86" && !c_variadic => {
28182818
Abi::Stdcall { unwind }
28192819
}
2820-
Abi::System { unwind } if self.is_like_vexos && !c_variadic => Abi::Aapcs { unwind },
2820+
Abi::System { unwind } if self.is_like_vexos && self.arch == "arm" && !c_variadic => {
2821+
Abi::Aapcs { unwind }
2822+
}
28212823
Abi::System { unwind } => Abi::C { unwind },
28222824
Abi::EfiApi if self.arch == "arm" => Abi::Aapcs { unwind: false },
28232825
Abi::EfiApi if self.arch == "x86_64" => Abi::Win64 { unwind: false },

0 commit comments

Comments
 (0)