require the __asan_unpoison_memory_region runtime symbol so empty projects with asan enabled build

This commit is contained in:
Laytan Laats
2025-05-09 22:26:49 +02:00
parent 8a225a6887
commit 4d08b76372

View File

@@ -1109,6 +1109,7 @@ __read_bits :: proc "contextless" (dst, src: [^]byte, offset: uintptr, size: uin
when .Address in ODIN_SANITIZER_FLAGS {
foreign {
@(require)
__asan_unpoison_memory_region :: proc "system" (address: rawptr, size: uint) ---
}
}