add blacklist for unsupported calling conventions

This commit is contained in:
Stephan 2020-11-02 22:52:47 +01:00
parent 6e58b1c3c9
commit 7d2441134b

View File

@ -1,6 +1,7 @@
// Bare MIPS32r2, little endian, softfloat
// can be used for MIPS M4K core (e.g. on PIC32MX devices)
use crate::spec::abi::Abi;
use crate::spec::{LinkerFlavor, LldFlavor, RelocModel};
use crate::spec::{PanicStrategy, Target, TargetOptions};
@ -25,6 +26,14 @@ pub fn target() -> Target {
linker: Some("rust-lld".to_owned()),
panic_strategy: PanicStrategy::Abort,
relocation_model: RelocModel::Static,
unsupported_abis: vec![
Abi::Stdcall,
Abi::Fastcall,
Abi::Vectorcall,
Abi::Thiscall,
Abi::Win64,
Abi::SysV64,
],
emit_debug_gdb_scripts: false,
..Default::default()
},