mirror of
https://github.com/reactos/reactos.git
synced 2026-06-09 17:33:50 +08:00
[CMAKE] Do not call clang with unsupported arguments
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user