File tree 1 file changed +10
-5
lines changed
compiler/rustc_target/src/spec
1 file changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -2871,11 +2871,16 @@ impl Target {
2871
2871
EfiApi => C { unwind : false } ,
2872
2872
2873
2873
// See commentary in `is_abi_supported`.
2874
- Stdcall { .. } | Thiscall { .. } if self . arch == "x86" => abi,
2875
- Stdcall { unwind } | Thiscall { unwind } => C { unwind } ,
2876
- Fastcall { .. } if self . arch == "x86" => abi,
2877
- Vectorcall { .. } if [ "x86" , "x86_64" ] . contains ( & & self . arch [ ..] ) => abi,
2878
- Fastcall { unwind } | Vectorcall { unwind } => C { unwind } ,
2874
+ Stdcall { unwind } | Thiscall { unwind } | Fastcall { unwind } => {
2875
+ if self . arch == "x86" { abi } else { C { unwind } }
2876
+ }
2877
+ Vectorcall { unwind } => {
2878
+ if [ "x86" , "x86_64" ] . contains ( & & * self . arch ) {
2879
+ abi
2880
+ } else {
2881
+ C { unwind }
2882
+ }
2883
+ }
2879
2884
2880
2885
// The Windows x64 calling convention we use for `extern "Rust"`
2881
2886
// <https://learn.microsoft.com/en-us/cpp/build/x64-software-conventions#register-volatility-and-preservation>
You can’t perform that action at this time.
0 commit comments