]> git.lizzy.rs Git - rust.git/commitdiff
add blacklist for unsupported calling conventions
authorStephan <kiffie@users.noreply.github.com>
Mon, 2 Nov 2020 21:52:47 +0000 (22:52 +0100)
committerStephan <kiffie@users.noreply.github.com>
Mon, 2 Nov 2020 21:52:47 +0000 (22:52 +0100)
compiler/rustc_target/src/spec/mipsel_unknown_none.rs

index 79a249a5c137f33d0b5c1f9466c91e10166613ba..baa1ed1b056b12786bb1718683e237439fb7d651 100644 (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()
         },