meson: use cc.has_function_attribute instead of open coding
authorDylan Baker <dylan@pnwbakers.com>
Wed, 19 Jan 2022 19:12:43 +0000 (11:12 -0800)
committerDylan Baker <dylan@pnwbakers.com>
Thu, 20 Jan 2022 18:08:23 +0000 (10:08 -0800)
commit38c568775e19dd99d72d5564752ad27781a9a102
tree021b83c222051d860346cdf7d278c2737254eea1
parentf9539d4128b30e0321b6d36a5abfb900f5593f3c
meson: use cc.has_function_attribute instead of open coding

It's less code, and also allows meson to short circuit for compilers is
knows don't support this.

Signed-off-by: Dylan Baker <dylan@pnwbakers.com>
Reviewed-by: Simon Ser <contact@emersion.fr>
meson.build