mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-05-10 09:19:31 +03:00
Merge branch 'dev-win' of https://github.com/microsoft/mimalloc into dev-win
This commit is contained in:
commit
de57686dac
1 changed files with 2 additions and 2 deletions
|
@ -685,8 +685,8 @@ __declspec(dllexport) BOOL WINAPI DllEntry(HINSTANCE inst, DWORD reason, LPVOID
|
|||
if (ok) {
|
||||
// check if patching is not disabled
|
||||
#pragma warning(suppress:4996)
|
||||
const char* s = getenv("MIMALLOC_OVERRIDE");
|
||||
bool enabled = (s == NULL || strstr("1;TRUE;YES;ON", s) != NULL);
|
||||
const char* s = getenv("MIMALLOC_DISABLE_OVERRIDE");
|
||||
bool enabled = (s == NULL || !(strstr("1;TRUE;YES;ON", s) != NULL));
|
||||
if (!enabled) {
|
||||
_mi_verbose_message("override is disabled\n");
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue