8378440: ASAN build fails on Windows due to missing dlfcn.h file

Reviewed-by: stuefe
This commit is contained in:
Afshin Zafari 2026-03-22 12:56:27 +00:00
parent 2cdf617952
commit e042467ed2

View File

@ -30,6 +30,7 @@
#include "utilities/globalDefinitions.hpp"
#include "utilities/vmError.hpp"
#ifndef _WINDOWS
#include <dlfcn.h>
#include <stdio.h>
@ -118,4 +119,11 @@ void Asan::report(outputStream* st) {
}
}
#else // defined windows
void Asan::initialize() {}
bool Asan::had_error() { return false; }
void Asan::report(outputStream* st) {}
#endif // ifndef _WINDOWS
#endif // ADDRESS_SANITIZER