mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 19:52:59 +00:00
[CMAKE] Elimitate the use of GCC and CLANG variables
This commit is contained in:
parent
6f4be52a1c
commit
f155b9377f
32 changed files with 78 additions and 116 deletions
|
@ -26,7 +26,7 @@ if(ARCH STREQUAL "i386")
|
|||
math/i386/alldiv_asm.s
|
||||
math/i386/aulldiv_asm.s
|
||||
)
|
||||
if (GCC AND CLANG)
|
||||
if (CMAKE_C_COMPILER_ID STREQUAL "Clang" AND NOT MSVC)
|
||||
list(APPEND MSVCRTEX_ASM_SOURCE
|
||||
math/i386/ceilf.S
|
||||
math/i386/floorf.S)
|
||||
|
@ -77,7 +77,7 @@ if(MSVC AND (ARCH STREQUAL "i386"))
|
|||
endif()
|
||||
|
||||
|
||||
if(GCC OR CLANG)
|
||||
if(CMAKE_C_COMPILER_ID STREQUAL "GNU" OR CMAKE_C_COMPILER_ID STREQUAL "Clang")
|
||||
target_compile_options(msvcrtex PRIVATE $<$<COMPILE_LANGUAGE:C>:-Wno-main>)
|
||||
if(LTCG)
|
||||
target_compile_options(msvcrtex PRIVATE -fno-lto)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue