Mesa (main): amd/addrlib: Use get_supported_arguments to get compiler args.

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Wed Nov 24 07:36:00 UTC 2021


Module: Mesa
Branch: main
Commit: d106e5c73265f899f7204f7353969be945d6eda3
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=d106e5c73265f899f7204f7353969be945d6eda3

Author: Georg Lehmann <dadschoorse at gmail.com>
Date:   Fri Jun 25 17:15:08 2021 +0200

amd/addrlib: Use get_supported_arguments to get compiler args.

Signed-off-by: Georg Lehmann <dadschoorse at gmail.com>
Reviewed-by: Dylan Baker <dylan at pnwbakers.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11609>

---

 src/amd/addrlib/meson.build | 12 +++++-------
 1 file changed, 5 insertions(+), 7 deletions(-)

diff --git a/src/amd/addrlib/meson.build b/src/amd/addrlib/meson.build
index 7bd7097afbb..81c35f20125 100644
--- a/src/amd/addrlib/meson.build
+++ b/src/amd/addrlib/meson.build
@@ -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',



More information about the mesa-commit mailing list