mirror of
https://github.com/reactos/reactos.git
synced 2025-06-01 15:38:37 +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
|
list(APPEND MSVCRTEX_SOURCE
|
||||||
startup/pseudo-reloc.c
|
startup/pseudo-reloc.c
|
||||||
startup/pseudo-reloc-list.c)
|
startup/pseudo-reloc-list.c)
|
||||||
if (CLANG)
|
endif()
|
||||||
# CLang performs some optimisations requiring those funtions
|
|
||||||
list(APPEND MSVCRTEX_SOURCE
|
if(CMAKE_C_COMPILER_ID STREQUAL "Clang")
|
||||||
math/exp2.c
|
# Clang performs some optimizations requiring those funtions
|
||||||
math/exp2f.c)
|
list(APPEND MSVCRTEX_SOURCE
|
||||||
endif()
|
math/exp2.c
|
||||||
|
math/exp2f.c
|
||||||
|
)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(ARCH STREQUAL "i386")
|
if(ARCH STREQUAL "i386")
|
||||||
|
# Clang wants __aulldiv for its optimizations
|
||||||
list(APPEND MSVCRTEX_ASM_SOURCE
|
list(APPEND MSVCRTEX_ASM_SOURCE
|
||||||
except/i386/chkstk_asm.s
|
except/i386/chkstk_asm.s
|
||||||
except/i386/chkstk_ms.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)
|
if (GCC AND CLANG)
|
||||||
list(APPEND MSVCRTEX_ASM_SOURCE
|
list(APPEND MSVCRTEX_ASM_SOURCE
|
||||||
math/i386/ceilf.S
|
math/i386/ceilf.S
|
||||||
|
|
Loading…
Reference in a new issue