meson.build: set project cc flags also for native builds

Use the build flags also for all native build targets.
Avoids spurious warnings in spa-json-dump
This commit is contained in:
Pauli Virtanen 2025-10-25 13:59:47 +03:00 committed by Wim Taymans
parent 3febf09b85
commit fe2c62b9b1
2 changed files with 3 additions and 3 deletions

View file

@ -118,8 +118,8 @@ cc_flags = common_flags + [
'-DSPA_AUDIO_MAX_CHANNELS=128u',
]
add_project_arguments(cc.get_supported_arguments(cc_flags), language: 'c')
cc_flags_native = cc_native.get_supported_arguments(cc_flags)
add_project_arguments(cc_native.get_supported_arguments(cc_flags),
language: 'c', native: true)
have_cpp = add_languages('cpp', native: false, required : false)