~lattis/muon#7: 
Implement `add_global_arguments()` function

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'])
        ^

See https://mesonbuild.com/Adding-arguments.html

Status
REPORTED
Submitter
~xvilka
Assigned to
No-one
Submitted
a month ago
Updated
29 days ago
Labels
No labels applied.

~eschwartz a month ago

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.

~xvilka 29 days ago

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.

Register here or Log in to comment, or comment via email.