Add "-fstrict-enums" to the compiler options for g++ and clang
This commit is contained in:
parent
328c8a6868
commit
6243e97d48
|
@ -55,7 +55,7 @@ if (${IS_GNU} OR ${IS_CLANG})
|
||||||
add_definitions(-D_GLIBCXX_PARALLEL)
|
add_definitions(-D_GLIBCXX_PARALLEL)
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
set(CMAKE_CXX_FLAGS "-flto ${CMAKE_CXX_FLAGS} -pipe -fstack-protector-strong -fstack-clash-protection -funwind-tables -fasynchronous-unwind-tables -frtti -fexceptions")
|
set(CMAKE_CXX_FLAGS "-flto ${CMAKE_CXX_FLAGS} -fstrict-enums -pipe -fstack-protector-strong -fstack-clash-protection -funwind-tables -fasynchronous-unwind-tables -frtti -fexceptions")
|
||||||
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -ffunction-sections -fdata-sections -fmerge-all-constants -ftree-vectorize")
|
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -ffunction-sections -fdata-sections -fmerge-all-constants -ftree-vectorize")
|
||||||
include(CheckCXXCompilerFlag)
|
include(CheckCXXCompilerFlag)
|
||||||
set(CF_PROTECTION "-fcf-protection")
|
set(CF_PROTECTION "-fcf-protection")
|
||||||
|
|
Loading…
Reference in New Issue