diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2020-08-11 14:50:46 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-11 14:50:46 +0200 |
commit | 813f16a2a39f1375b241cf50845f641ea44d890e (patch) | |
tree | a5c45d5ead15167ded8d9d9dcef87dbf52013a38 /compiler/evalffi.nim | |
parent | 963db9e7dac39f4238f013addfae36439318b67f (diff) | |
parent | b022576ce96f5c166c7f5684bef9de682704cb1b (diff) | |
download | Nim-813f16a2a39f1375b241cf50845f641ea44d890e.tar.gz |
Fix #8473 (#15169)
* Make explicit {.nimcall.} a seperate calling convention * Add testcase for #5688 * Fix bootstrapping * Remove little lies :) * Use typeflag instead
Diffstat (limited to 'compiler/evalffi.nim')
-rw-r--r-- | compiler/evalffi.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/evalffi.nim b/compiler/evalffi.nim index f89451f51..0d471cf98 100644 --- a/compiler/evalffi.nim +++ b/compiler/evalffi.nim @@ -104,7 +104,7 @@ proc mapType(conf: ConfigRef, t: ast.PType): ptr libffi.Type = proc mapCallConv(conf: ConfigRef, cc: TCallingConvention, info: TLineInfo): TABI = case cc - of ccDefault: result = DEFAULT_ABI + of ccNimCall: result = DEFAULT_ABI of ccStdCall: result = when defined(windows) and defined(x86): STDCALL else: DEFAULT_ABI of ccCDecl: result = DEFAULT_ABI else: |