diff options
author | Andreas Schneider <asn@cryptomilk.org> | 2018-09-03 15:45:38 +0200 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2018-09-03 15:45:38 +0200 |
commit | 29ab727f329af73fea63c6b1138725b668abdb54 (patch) | |
tree | 5abaf25ca1886629d53d32fff02f7ca4f156eada /CompilerChecks.cmake | |
parent | 47045c6c004717c35a296fe96153ae79e308e2f6 (diff) | |
download | cmocka-29ab727f329af73fea63c6b1138725b668abdb54.tar.gz cmocka-29ab727f329af73fea63c6b1138725b668abdb54.tar.xz cmocka-29ab727f329af73fea63c6b1138725b668abdb54.zip |
cmake: Add compiler check for -fstack-clash-protection
Diffstat (limited to 'CompilerChecks.cmake')
-rw-r--r-- | CompilerChecks.cmake | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/CompilerChecks.cmake b/CompilerChecks.cmake index 9246082..2cbd00f 100644 --- a/CompilerChecks.cmake +++ b/CompilerChecks.cmake @@ -73,6 +73,11 @@ if (UNIX) endif() endif (WITH_STACK_PROTECTOR_STRONG) + check_c_compiler_flag_ssp("-fstack-clash-protection" WITH_STACK_CLASH_PROTECTION) + if (WITH_STACK_CLASH_PROTECTION) + list(APPEND SUPPORTED_COMPILER_FLAGS "-fstack-clash-protection") + endif() + if (PICKY_DEVELOPER) add_c_compiler_flag("-Wno-error=deprecated-declarations" SUPPORTED_COMPILER_FLAGS) add_c_compiler_flag("-Wno-error=tautological-compare" SUPPORTED_COMPILER_FLAGS) |