mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-28 05:40:26 -04:00
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:
parent
3febf09b85
commit
fe2c62b9b1
2 changed files with 3 additions and 3 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
|
|
@ -125,7 +125,7 @@ sparesampledumpcoeffs_sources = [
|
|||
sparesampledumpcoeffs = executable(
|
||||
'spa-resample-dump-coeffs',
|
||||
sparesampledumpcoeffs_sources,
|
||||
c_args : [ cc_flags_native, '-DRESAMPLE_DISABLE_PRECOMP' ],
|
||||
c_args : [ '-DRESAMPLE_DISABLE_PRECOMP' ],
|
||||
dependencies : [ spa_dep, mathlib_native ],
|
||||
install : false,
|
||||
native : true,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue