diff options
-rw-r--r-- | mesonbuild/compilers/c_function_attributes.py | 3 |
1 files changed, 3 insertions, 0 deletions
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; }', } |