File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -168,7 +168,11 @@ endif()
168168add_compile_options (-march=${OARCH} -mtune=${TUNE} )
169169
170170# Warnings, errors
171- if ((NOT CMAKE_BUILD_TYPE STREQUAL "Release" ) AND (NOT CMAKE_BUILD_TYPE STREQUAL "RelWithDebInfo" ) AND (NOT CMAKE_C_COMPILER_ID STREQUAL Clang))
171+ if (NOT CMAKE_C_COMPILER_ID STREQUAL "Clang" AND
172+ NOT ARCH STREQUAL "amd64" AND
173+ NOT CMAKE_BUILD_TYPE STREQUAL "Release" AND
174+ NOT CMAKE_BUILD_TYPE STREQUAL "RelWithDebInfo" AND
175+ NOT CMAKE_BUILD_TYPE STREQUAL "MinSizeRel" )
172176 add_compile_options (-Werror )
173177endif ()
174178
@@ -249,7 +253,6 @@ elseif(ARCH STREQUAL "amd64")
249253 if (CMAKE_C_COMPILER_ID STREQUAL "GNU" )
250254 add_compile_options (-mpreferred-stack-boundary=4 )
251255 endif ()
252- add_compile_options (-Wno-error )
253256endif ()
254257
255258# Other
You can’t perform that action at this time.
0 commit comments