From 66bc4856465714d2e3dab3e179fa011dc3ea6e94 Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Thu, 16 Apr 2020 11:14:58 -0700 Subject: compilers: Update gnu_inline test to work correctly with Clang >= 10 Which has changed the way it handles gnu_inline in C++. --- mesonbuild/compilers/c_function_attributes.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'mesonbuild/compilers') diff --git a/mesonbuild/compilers/c_function_attributes.py b/mesonbuild/compilers/c_function_attributes.py index e5de485..3b9fdf9 100644 --- a/mesonbuild/compilers/c_function_attributes.py +++ b/mesonbuild/compilers/c_function_attributes.py @@ -127,4 +127,7 @@ CXX_FUNC_ATTRIBUTES = { 'static int (*resolve_foo(void))(void) { return my_foo; }' '}' 'int foo(void) __attribute__((ifunc("resolve_foo")));'), + # Clang >= 10 requires the 'extern' keyword + 'gnu_inline': + 'extern inline __attribute__((gnu_inline)) int foo(void) { return 0; }', } -- cgit v1.1