Move -fstack-clash-protection to GCC-only flags
This commit is contained in:
parent
87d46d8111
commit
26d31dbdef
1 changed files with 1 additions and 1 deletions
|
|
@ -7,7 +7,6 @@
|
||||||
target_compile_options(common_options
|
target_compile_options(common_options
|
||||||
INTERFACE
|
INTERFACE
|
||||||
-fstack-protector-all
|
-fstack-protector-all
|
||||||
-fstack-clash-protection
|
|
||||||
-fPIC
|
-fPIC
|
||||||
$<IF:$<CONFIG:Debug>,,-fno-strict-aliasing>
|
$<IF:$<CONFIG:Debug>,,-fno-strict-aliasing>
|
||||||
-pipe
|
-pipe
|
||||||
|
|
@ -34,6 +33,7 @@ INTERFACE
|
||||||
if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
|
if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
|
||||||
target_compile_options(common_options
|
target_compile_options(common_options
|
||||||
INTERFACE
|
INTERFACE
|
||||||
|
-fstack-clash-protection
|
||||||
-Wno-maybe-uninitialized
|
-Wno-maybe-uninitialized
|
||||||
)
|
)
|
||||||
endif()
|
endif()
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue