amd: Pass addrlib cpp args to the tests
The declaration and definition used by tests otherwise differs from
addrlib.
Found by LTO -Werror=lto-type-mismatch.
Fixes: 1d69c0419b ("amd/addrlib: prevent defining regparm differently")
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Signed-off-by: David Heidelberg <david@ixit.cz>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31613>
This commit is contained in:
committed by
Marge Bot
parent
e965dfd90b
commit
d14d3c5bdd
@@ -156,6 +156,7 @@ if with_tests and not with_platform_windows
|
||||
include_directories : [
|
||||
inc_amd, inc_include, inc_src,
|
||||
],
|
||||
c_args : cpp_args_addrlib,
|
||||
dependencies: [idep_amdgfxregs_h, dep_libdrm_amdgpu, idep_mesautil],
|
||||
),
|
||||
suite: ['amd']
|
||||
@@ -172,6 +173,7 @@ if with_tests and not with_platform_windows
|
||||
include_directories : [
|
||||
inc_amd, inc_include, inc_src,
|
||||
],
|
||||
c_args : cpp_args_addrlib,
|
||||
dependencies: [idep_amdgfxregs_h, dep_libdrm_amdgpu, idep_mesautil, dep_openmp],
|
||||
),
|
||||
suite: ['amd']
|
||||
|
||||
Reference in New Issue
Block a user