error function not implemented /home/akochkov/rizin/rizin_copy/meson.build:136:3: error: in builtin function add_global_arguments 136 | add_global_arguments('-Werror=sizeof-pointer-memaccess', language: ['c', 'cpp']) ^
For the record, muon does support add_project_arguments, and the only difference between the two is that global:
- is a bit of a design mistake and people nearly always want project instead
- will set arguments for subprojects too, or error out if invoked in a subproject.
In our case we use the
add_global_arguments()on purpose, to force these arguments on subprojects too, see the code:
# Sanitize correct usage of rz_strf() if cc.has_argument('-Werror=sizeof-pointer-memaccess') add_global_arguments('-Werror=sizeof-pointer-memaccess', language: ['c', 'cpp']) endif
It has its uses for sure.