Browse Source

pulseaudio: Treat -Wunused-command-line-argument as error

This ensures that it does not enble SSE when -msse flag is passed, clang
warns about unused option on non-x86 targets but it must be flagged as
error for configure to notice and fail the check to enable SSE on non-x86
machines

(From OE-Core rev: 976b01c798ad2825bb36e5e91d1d5066701cc586)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Khem Raj 2 weeks ago
parent
commit
b20585724f
1 changed files with 3 additions and 0 deletions
  1. 3 0
      meta/recipes-multimedia/pulseaudio/pulseaudio.inc

+ 3 - 0
meta/recipes-multimedia/pulseaudio/pulseaudio.inc

@@ -71,6 +71,9 @@ inherit bash-completion meson pkgconfig useradd gettext perlnative systemd manpa
 # if using --disable-nls
 USE_NLS = "yes"
 
+# Helps tests for -msse fail on non-SSE architectures which is all non-x86
+TUNE_CCARGS:append:toolchain-clang = " -Werror=unused-command-line-argument"
+
 EXTRA_OEMESON = "\
 		-Dhal-compat=false \
 		-Dorc=disabled \