reactos/sdk/lib/ucrt/stdlib/stdlib.cmake
Timo Kreuzer 5b633d64f1 [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.
2025-03-24 23:02:06 +00:00

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()