From e7ecd116e0e013bf8c01d66505ced4ce1b58c005 Mon Sep 17 00:00:00 2001 From: Jiawen Geng Date: Tue, 16 May 2023 05:35:35 +0800 Subject: [PATCH] win: fix mingw build (#3994) Fixes: https://github.com/libuv/libuv/issues/3992 --- src/win/process.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/win/process.c b/src/win/process.c index 3e46176f..b86a7d47 100644 --- a/src/win/process.c +++ b/src/win/process.c @@ -1279,6 +1279,12 @@ static int uv__kill(HANDLE process_handle, int signum) { sym_options = SymGetOptions(); SymSetOptions(sym_options | 0x40000000); +/* patch for mingw under 12 */ +#ifdef __MINGW32__ +#ifndef MiniDumpWithAvxXStateContext +#define MiniDumpWithAvxXStateContext 0x00200000 +#endif +#endif /* We default to a fairly complete dump. In the future, we may want to * allow clients to customize what kind of dump to create. */ dump_options = MiniDumpWithFullMemory |