diff options
author | Dylan Baker <dylan@pnwbakers.com> | 2020-04-16 11:14:58 -0700 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2020-04-17 18:18:20 +0300 |
commit | 66bc4856465714d2e3dab3e179fa011dc3ea6e94 (patch) | |
tree | 991dbc80f5128912a4d6d3de8f93407f30d1eed3 | |
parent | d4b537c89508751a7cd21da1d69516ef4ebaef37 (diff) | |
download | meson-66bc4856465714d2e3dab3e179fa011dc3ea6e94.zip meson-66bc4856465714d2e3dab3e179fa011dc3ea6e94.tar.gz meson-66bc4856465714d2e3dab3e179fa011dc3ea6e94.tar.bz2 |
compilers: Update gnu_inline test to work correctly with Clang >= 10
Which has changed the way it handles gnu_inline in C++.
-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; }', } |