We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
extern "custom"
1 parent d5e9833 commit dcc4874Copy full SHA for dcc4874
src/abi/mod.rs
@@ -51,6 +51,11 @@ pub(crate) fn conv_to_call_conv(
51
CanonAbi::Rust | CanonAbi::C => default_call_conv,
52
CanonAbi::RustCold => CallConv::Cold,
53
54
+ // Functions with this calling convention can only be called from assembly, but it is
55
+ // possible to declare an `extern "custom"` block, so the backend still needs a calling
56
+ // convention for declaring foreign functions.
57
+ CanonAbi::Custom => default_call_conv,
58
+
59
CanonAbi::X86(x86_call) => match x86_call {
60
X86Call::SysV64 => CallConv::SystemV,
61
X86Call::Win64 => CallConv::WindowsFastcall,
0 commit comments