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:
Georg Lehmann 2021-06-25 17:15:08 +02:00 committed by Marge Bot
parent a6f783948d
commit d106e5c732

View file

@ -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',