amd/addrlib: use cpp.has_argument() to filter compiler arguments
Acked-by: Michel Dänzer <mdaenzer@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7846>
This commit is contained in:

committed by
Marge Bot

parent
6679a34394
commit
d0767fc045
@@ -53,12 +53,14 @@ files_addrlib = files(
|
|||||||
)
|
)
|
||||||
|
|
||||||
cpp_args_addrlib = []
|
cpp_args_addrlib = []
|
||||||
if cpp.get_id() != 'msvc'
|
foreach w : ['-Wno-unused-variable', '-Wno-unused-local-typedefs',
|
||||||
cpp_args_addrlib += '-Wno-unused-variable'
|
'-Wno-unused-but-set-variable', '-Wno-maybe-uninitialized']
|
||||||
cpp_args_addrlib += '-Wno-unused-local-typedefs'
|
if cpp.has_argument(w)
|
||||||
cpp_args_addrlib += '-Wno-unused-but-set-variable'
|
cpp_args_addrlib += w
|
||||||
cpp_args_addrlib += '-Wno-maybe-uninitialized'
|
endif
|
||||||
endif
|
endforeach
|
||||||
|
|
||||||
|
message(cpp_args_addrlib)
|
||||||
|
|
||||||
libamdgpu_addrlib = static_library(
|
libamdgpu_addrlib = static_library(
|
||||||
'addrlib',
|
'addrlib',
|
||||||
|
Reference in New Issue
Block a user