Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit f2e6bb2

Browse files
doinkythederpTropix126
authored andcommittedJan 25, 2025··
ensure arm arch before adjusting VEXos system ABI to aapcs
1 parent d74cd11 commit f2e6bb2

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
@@ -2821,7 +2821,9 @@ impl Target {
28212821
Abi::System { unwind } if self.is_like_windows && self.arch == "x86" && !c_variadic => {
28222822
Abi::Stdcall { unwind }
28232823
}
2824-
Abi::System { unwind } if self.is_like_vexos && !c_variadic => Abi::Aapcs { unwind },
2824+
Abi::System { unwind } if self.is_like_vexos && self.arch == "arm" && !c_variadic => {
2825+
Abi::Aapcs { unwind }
2826+
}
28252827
Abi::System { unwind } => Abi::C { unwind },
28262828
Abi::EfiApi if self.arch == "arm" => Abi::Aapcs { unwind: false },
28272829
Abi::EfiApi if self.arch == "x86_64" => Abi::Win64 { unwind: false },

0 commit comments

Comments
 (0)
Please sign in to comment.