Skip to content
Snippets Groups Projects
Commit 5b94f99f authored by Ben Gamari's avatar Ben Gamari Committed by Marge Bot
Browse files

rts: Ensure that WinIO flag is set when --io-manager=auto

As noted in #25838, previously `selectIOManager` failed to set
`rts_IOManagerIsWin32Native` in its `IO_MNGR_FLAG_AUTO`. This meant
that the MIO path was taken when WinIO was supposedly selected,
resulting in chaos.

Fixes #25838.
parent 313cf271
No related branches found
No related tags found
No related merge requests found
......@@ -233,7 +233,6 @@ void selectIOManager(void)
#if defined(IOMGR_ENABLED_WINIO)
case IO_MNGR_FLAG_WINIO:
iomgr_type = IO_MANAGER_WINIO;
rts_IOManagerIsWin32Native = true;
break;
#endif
......@@ -246,6 +245,10 @@ void selectIOManager(void)
default:
barf("selectIOManager: %d", RtsFlags.MiscFlags.ioManager);
}
#if defined(mingw32_HOST_OS)
rts_IOManagerIsWin32Native = iomgr_type == IO_MANAGER_WINIO;
#endif
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment