mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-03 18:00:10 +01:00
amd/addrlib: Use get_supported_arguments to get compiler args.
Signed-off-by: Georg Lehmann <dadschoorse@gmail.com> Reviewed-by: Dylan Baker <dylan@pnwbakers.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11609>
This commit is contained in:
parent
a6f783948d
commit
d106e5c732
1 changed files with 5 additions and 7 deletions
|
|
@ -61,13 +61,11 @@ else
|
|||
cpp_args_addrlib += '-DBIGENDIAN_CPU'
|
||||
endif
|
||||
|
||||
foreach w : ['-Wno-unused-variable', '-Wno-unused-local-typedefs',
|
||||
'-Wno-unused-but-set-variable', '-Wno-maybe-uninitialized',
|
||||
'-Wno-self-assign']
|
||||
if cpp.has_argument(w)
|
||||
cpp_args_addrlib += w
|
||||
endif
|
||||
endforeach
|
||||
cpp_args_addrlib += cpp.get_supported_arguments(
|
||||
['-Wno-unused-variable', '-Wno-unused-local-typedefs',
|
||||
'-Wno-unused-but-set-variable', '-Wno-maybe-uninitialized',
|
||||
'-Wno-self-assign']
|
||||
)
|
||||
|
||||
libamdgpu_addrlib = static_library(
|
||||
'addrlib',
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue