[UCRTBASE] Build without debug exports

Windows ships ucrtbase without debug exports and ucrtbased with debug exports. The wine test tests ucrtbase and loads it dynamically in some cases. Compiling it with _DEBUG requires it to be linked to ucrtbased, which causes problems, because it also dynamically loads ucrtbase, which will cause it to crash.
This commit is contained in:
Timo Kreuzer 2025-01-27 11:51:21 +02:00
parent 6a4dbedd1e
commit 5b633d64f1
5 changed files with 15 additions and 21 deletions

View file

@ -20,9 +20,8 @@ list(APPEND UCRT_HEAP_SOURCES
heap/recalloc.cpp
)
if(DBG)
list(APPEND UCRT_HEAP_SOURCES
heap/debug_heap.cpp
heap/debug_heap_hook.cpp
)
endif()
# Debug sources
list(APPEND UCRTD_HEAP_SOURCES
heap/debug_heap.cpp
heap/debug_heap_hook.cpp
)