Подключение добавленной в GCC 10 опции -fanalyzer
This commit is contained in:
parent
3ebfdf81a8
commit
48fff012d0
@ -113,6 +113,16 @@ if(CMAKE_CXX_COMPILER_IS_GCC)
|
||||
# Let's just disable the warning for now.
|
||||
check_enable_cxx_flag(-Wno-attributes)
|
||||
endif()
|
||||
|
||||
set(CMAKE_REQUIRED_QUIET TRUE)
|
||||
check_cxx_compiler_flag(-fanalyzer ANALYZER_GCC_FLAG)
|
||||
unset(CMAKE_REQUIRED_QUIET)
|
||||
if(ANALYZER_GCC_FLAG)
|
||||
option(CMLIB_ENABLE_GCC_ANALYZER "Enable GCC -fanalyzer option" OFF)
|
||||
if(CMLIB_ENABLE_GCC_ANALYZER)
|
||||
add_compile_options("-fanalyzer")
|
||||
endif()
|
||||
endif()
|
||||
endif()
|
||||
|
||||
if(CMAKE_SYSTEM_PROCESSOR STREQUAL "e2k")
|
||||
|
Loading…
Reference in New Issue
Block a user