build with crt for now, add libraries

This commit is contained in:
u130b8
2023-10-13 13:14:46 +03:00
parent 39229500f6
commit ef8b514527
2 changed files with 12 additions and 2 deletions

View File

@@ -193,6 +193,12 @@ int WINAPI wWinMain(_In_ HINSTANCE hInstance, _In_opt_ HINSTANCE hPrevInstance,
return 0;
}
/*
// NOTE(u130b8): We used to compile Release builds with /NODEFAULTLIB
// but I've temporarily removed it so malloc and free works.
// NOTE(u130b8): We're compiling without the C runtime by default in Release builds.
// But in Debug builds, we need the C runtime, otherwise the address sanitizer and
// MSVC debug tools break because they use the wWinMainCRTStartup entrypoint to initialize.
@@ -215,3 +221,5 @@ void __stdcall wWinMainCRTStartup() {
ExitProcess(code);
}
#endif
*/