Debian Codegraph @

meson/hardening/stack-clash-prot/meson.build

raw
1 opt_scp = get_option('hardening-experimental-scp')
2
3 support_scp = not opt_scp.disabled() and cxx.has_argument('-fstack-clash-protection')
4 if support_scp
5 add_project_arguments('-fstack-clash-protection', language: ['c', 'cpp'])
6 elif opt_scp.enabled()
7 error('Stack Clash Protection was explicitly requested but is not supported by the compiler')
8 endif
9
10 summary('Stack Clash Protection', support_scp, bool_yn: true, section: 'Hardening')