mirror of
https://github.com/reactos/reactos.git
synced 2024-11-18 21:13:52 +00:00
[CMAKE] Do not call clang with unsupported arguments
This commit is contained in:
parent
f3e1697c2b
commit
83e1afe12a
1 changed files with 7 additions and 2 deletions
|
@ -123,7 +123,10 @@ if(CMAKE_BUILD_TYPE STREQUAL "Release")
|
|||
add_compile_options(-O2 -DNDEBUG)
|
||||
else()
|
||||
if(OPTIMIZE STREQUAL "1")
|
||||
add_compile_options(-Os -ftracer)
|
||||
add_compile_options(-Os)
|
||||
if (CMAKE_C_COMPILER_ID STREQUAL "GNU")
|
||||
add_compile_options(-ftracer)
|
||||
endif()
|
||||
elseif(OPTIMIZE STREQUAL "2")
|
||||
add_compile_options(-Os)
|
||||
elseif(OPTIMIZE STREQUAL "3")
|
||||
|
@ -154,7 +157,9 @@ if(ARCH STREQUAL "i386")
|
|||
add_compile_options(-momit-leaf-frame-pointer)
|
||||
endif()
|
||||
elseif(ARCH STREQUAL "amd64")
|
||||
add_compile_options(-mpreferred-stack-boundary=4)
|
||||
if (CMAKE_C_COMPILER_ID STREQUAL "GNU")
|
||||
add_compile_options(-mpreferred-stack-boundary=4)
|
||||
endif()
|
||||
add_compile_options(-Wno-error)
|
||||
endif()
|
||||
|
||||
|
|
Loading…
Reference in a new issue