mirror of
https://github.com/reactos/reactos.git
synced 2025-04-21 20:50:29 +00:00

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.
31 lines
666 B
CMake
31 lines
666 B
CMake
|
|
list(APPEND UCRT_STDLIB_SOURCES
|
|
stdlib/abs.cpp
|
|
stdlib/bsearch.cpp
|
|
stdlib/bsearch_s.cpp
|
|
stdlib/byteswap.cpp
|
|
stdlib/div.cpp
|
|
stdlib/imaxabs.cpp
|
|
stdlib/imaxdiv.cpp
|
|
stdlib/labs.cpp
|
|
stdlib/ldiv.cpp
|
|
stdlib/lfind.cpp
|
|
stdlib/lfind_s.cpp
|
|
stdlib/llabs.cpp
|
|
stdlib/lldiv.cpp
|
|
stdlib/lsearch.cpp
|
|
stdlib/lsearch_s.cpp
|
|
stdlib/qsort.cpp
|
|
stdlib/qsort_s.cpp
|
|
stdlib/rand.cpp
|
|
stdlib/rand_s.cpp
|
|
stdlib/rotl.cpp
|
|
stdlib/rotr.cpp
|
|
)
|
|
|
|
if(CMAKE_C_COMPILER_ID STREQUAL "Clang")
|
|
add_asm_files(UCRT_STDLIB_ASM stdlib/clang-hacks.s)
|
|
list(APPEND UCRT_STDLIB_SOURCES
|
|
${UCRT_STDLIB_ASM}
|
|
)
|
|
endif()
|