Skip to content

Commit 10ae75d

Browse files
committed
ensure arm arch before adjusting VEXos system ABI to aapcs
1 parent 665bbf6 commit 10ae75d

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
@@ -2815,7 +2815,9 @@ impl Target {
28152815
Abi::System { unwind } if self.is_like_windows && self.arch == "x86" && !c_variadic => {
28162816
Abi::Stdcall { unwind }
28172817
}
2818-
Abi::System { unwind } if self.is_like_vexos && !c_variadic => Abi::Aapcs { unwind },
2818+
Abi::System { unwind } if self.is_like_vexos && self.arch == "arm" && !c_variadic => {
2819+
Abi::Aapcs { unwind }
2820+
}
28192821
Abi::System { unwind } => Abi::C { unwind },
28202822
Abi::EfiApi if self.arch == "arm" => Abi::Aapcs { unwind: false },
28212823
Abi::EfiApi if self.arch == "x86_64" => Abi::Win64 { unwind: false },

0 commit comments

Comments
 (0)