From: André Zwing nerv@dawncrow.de
--- tools/winegcc/winegcc.c | 6 ++++++ 1 file changed, 6 insertions(+)
diff --git a/tools/winegcc/winegcc.c b/tools/winegcc/winegcc.c index 56fe179c92b..514e149ced0 100644 --- a/tools/winegcc/winegcc.c +++ b/tools/winegcc/winegcc.c @@ -507,6 +507,7 @@ static const char *get_multiarch_dir( struct target target ) case CPU_x86_64: return "/x86_64-linux-gnu"; case CPU_ARM: return "/arm-linux-gnueabi"; case CPU_ARM64: return "/aarch64-linux-gnu"; + case CPU_RISCV64: return "/riscv64-linux-gnu"; default: assert(0); } @@ -703,6 +704,11 @@ static void compile(struct options* opts, const char* lang) strarray_add(&comp_args, "-D__cdecl=__stdcall"); strarray_add(&comp_args, "-D__fastcall=__stdcall"); break; + case CPU_RISCV64: + strarray_add(&comp_args, "-D__stdcall="); + strarray_add(&comp_args, "-D__cdecl=__stdcall"); + strarray_add(&comp_args, "-D__fastcall=__stdcall"); + break; case CPU_ARM64EC: break; }