Debian Codegraph @

meson/hardening/control-flow/meson.build

raw
1 opt_cf = get_option('hardening-experimental-cf')
2
3 support_cf_prot = opt_cf != 'disabled' and cxx.has_argument('-fcf-protection=' + opt_cf)
4 if support_cf_prot
5 add_project_arguments('-fcf-protection=' + opt_cf, language: ['c', 'cpp'])
6 elif opt_cf != 'disabled'
7 error('Control Flow Protection was explicitly requested but is not supported by the compiler')
8 endif
9
10 summary('Control Flow Protection', support_cf_prot, bool_yn: true, section: 'Hardening')