mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
[MSVCRTEX] Add some routines required for clang optimizations
- Include exp2* in all clang builds - Include __aulldiv for i386 ones Those are required, at least for clang-cl Release configuration
This commit is contained in:
parent
14fbe80c4a
commit
03506b90e0
1 changed files with 12 additions and 7 deletions
|
@ -43,19 +43,24 @@ else()
|
|||
list(APPEND MSVCRTEX_SOURCE
|
||||
startup/pseudo-reloc.c
|
||||
startup/pseudo-reloc-list.c)
|
||||
if (CLANG)
|
||||
# CLang performs some optimisations requiring those funtions
|
||||
list(APPEND MSVCRTEX_SOURCE
|
||||
math/exp2.c
|
||||
math/exp2f.c)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
if(CMAKE_C_COMPILER_ID STREQUAL "Clang")
|
||||
# Clang performs some optimizations requiring those funtions
|
||||
list(APPEND MSVCRTEX_SOURCE
|
||||
math/exp2.c
|
||||
math/exp2f.c
|
||||
)
|
||||
endif()
|
||||
|
||||
if(ARCH STREQUAL "i386")
|
||||
# Clang wants __aulldiv for its optimizations
|
||||
list(APPEND MSVCRTEX_ASM_SOURCE
|
||||
except/i386/chkstk_asm.s
|
||||
except/i386/chkstk_ms.s
|
||||
math/i386/alldiv_asm.s)
|
||||
math/i386/alldiv_asm.s
|
||||
math/i386/aulldiv_asm.s
|
||||
)
|
||||
if (GCC AND CLANG)
|
||||
list(APPEND MSVCRTEX_ASM_SOURCE
|
||||
math/i386/ceilf.S
|
||||
|
|
Loading…
Reference in a new issue