Skip to content

Commit 7d24411

Browse files
committed
add blacklist for unsupported calling conventions
1 parent 6e58b1c commit 7d24411

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

compiler/rustc_target/src/spec/mipsel_unknown_none.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// Bare MIPS32r2, little endian, softfloat
22
// can be used for MIPS M4K core (e.g. on PIC32MX devices)
33

4+
use crate::spec::abi::Abi;
45
use crate::spec::{LinkerFlavor, LldFlavor, RelocModel};
56
use crate::spec::{PanicStrategy, Target, TargetOptions};
67

@@ -25,6 +26,14 @@ pub fn target() -> Target {
2526
linker: Some("rust-lld".to_owned()),
2627
panic_strategy: PanicStrategy::Abort,
2728
relocation_model: RelocModel::Static,
29+
unsupported_abis: vec![
30+
Abi::Stdcall,
31+
Abi::Fastcall,
32+
Abi::Vectorcall,
33+
Abi::Thiscall,
34+
Abi::Win64,
35+
Abi::SysV64,
36+
],
2837
emit_debug_gdb_scripts: false,
2938
..Default::default()
3039
},

0 commit comments

Comments
 (0)