1 2list(APPEND LIBCNTPR_STDLIB_SOURCE 3 stdlib/qsort.c 4) 5 6list(APPEND CRT_STDLIB_SOURCE 7 ${LIBCNTPR_STDLIB_SOURCE} 8 stdlib/_exit.c 9 stdlib/_set_abort_behavior.c 10 stdlib/abort.c 11 stdlib/atexit.c 12 stdlib/ecvt.c 13 stdlib/errno.c 14 stdlib/fcvt.c 15 stdlib/fcvtbuf.c 16 stdlib/fullpath.c 17 stdlib/gcvt.c 18 stdlib/getenv.c 19 stdlib/makepath.c 20 stdlib/makepath_s.c 21 stdlib/mbtowc.c 22 stdlib/mbstowcs.c 23 stdlib/obsol.c 24 stdlib/putenv.c 25 stdlib/rot.c 26 stdlib/senv.c 27 stdlib/swab.c 28 stdlib/wfulpath.c 29 stdlib/wputenv.c 30 stdlib/wsenv.c 31 stdlib/wmakpath.c 32 stdlib/wmakpath_s.c 33) 34 35if(MSVC AND CMAKE_C_COMPILER_ID STREQUAL "Clang") 36 if(ARCH STREQUAL "i386") 37 list(APPEND CRT_STDLIB_ASM_SOURCE 38 stdlib/clang-alias.s 39 ) 40 elseif(ARCH STREQUAL "amd64") 41 list(APPEND CRT_STDLIB_ASM_SOURCE 42 stdlib/clang-alias.s 43 ) 44 endif() 45endif() 46