aboutsummaryrefslogtreecommitdiff
path: root/src/parser.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2022-02-16 16:03:49 +0000
committergingerBill <bill@gingerbill.org>2022-02-16 16:03:49 +0000
commitdb6bd9b358f17c0259ff5fe6411ce93407613338 (patch)
tree54b7e06a4bee7fcc1813616a5bcb9df11da6d6a5 /src/parser.cpp
parent42ad54c28ee013618c7ee0039bbe1ce5dd1f0ba6 (diff)
Allow sysv and win64 calling conventions to be used on any platform on amd64
Diffstat (limited to 'src/parser.cpp')
-rw-r--r--src/parser.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/parser.cpp b/src/parser.cpp
index 0914c77ca..bd0e55b7f 100644
--- a/src/parser.cpp
+++ b/src/parser.cpp
@@ -3412,12 +3412,18 @@ ProcCallingConvention string_to_calling_convention(String s) {
if (s == "fast") return ProcCC_FastCall;
if (s == "none") return ProcCC_None;
if (s == "naked") return ProcCC_Naked;
+
+ if (s == "win64") return ProcCC_Win64;
+ if (s == "sysv") return ProcCC_SysV;
+
if (s == "system") {
if (build_context.metrics.os == TargetOs_windows) {
return ProcCC_StdCall;
}
return ProcCC_CDecl;
}
+
+
return ProcCC_Invalid;
}