win: fix mingw build (#3994)

Fixes: https://github.com/libuv/libuv/issues/3992
This commit is contained in:
Jiawen Geng 2023-05-16 05:35:35 +08:00 committed by GitHub
parent 44b8153005
commit e7ecd116e0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 |