meson: Use builtins for checking gnu __attributes__
authorDylan Baker <dylan.c.baker@intel.com>
Fri, 24 Apr 2020 19:39:27 +0000 (12:39 -0700)
committerMarge Bot <eric+marge@anholt.net>
Mon, 1 Jun 2020 18:59:18 +0000 (18:59 +0000)
commit17dcd535c1973fb8bdaba9eb013672825cc10b94
treeef85ea4fcd7bf0abcb8d51a633e1c64aecb23364
parent6ef314b4fa938310f282951888a1b51e31e4fa51
meson: Use builtins for checking gnu __attributes__

This requires less code, and will fast skip on compilers that are known
to not have these, like MSVC.

Acked-by: Matt Turner <mattst88@gmail.com>
Reviewed-by: Eric Engestrom <eric@engestrom.ch>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4740>
meson.build