build: remove duplicate checks for cflags
authorBruce Richardson <bruce.richardson@intel.com>
Thu, 19 Jul 2018 14:22:06 +0000 (15:22 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Thu, 26 Jul 2018 08:09:20 +0000 (10:09 +0200)
commit3e3eeb4d5ff754c3425fc38a4cbd2f6be872f1d9
tree77b44aa05869f4c9b4bc929e102701e48f6f169b
parent203b61dc5e182ffe07e07e457d4f079dc06d1cb7
build: remove duplicate checks for cflags

There is no need to check for each library, driver and example whether
certain cflags are supported. Instead of checking inside the loop, do
so outside and reuse the value.

Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
drivers/meson.build
examples/meson.build
lib/meson.build