summaryrefslogtreecommitdiff
path: root/mesonbuild/compilers
diff options
context:
space:
mode:
authorDudemanguy <random342@airmail.cc>2023-01-31 16:38:38 -0600
committerDylan Baker <dylan@pnwbakers.com>2023-02-01 13:26:09 -0800
commitf2cb8e2ad57702c0381195f9c9c26f21a4ef8127 (patch)
tree74f1c236f920603155175e2539b97e6e97dbd48c /mesonbuild/compilers
parent3729b6bcd4087217ad364bf2b84131880a01af40 (diff)
downloadmeson-f2cb8e2ad57702c0381195f9c9c26f21a4ef8127.tar.gz
add cc.has_function_attribute('vector_size')
Diffstat (limited to 'mesonbuild/compilers')
-rw-r--r--mesonbuild/compilers/c_function_attributes.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/mesonbuild/compilers/c_function_attributes.py b/mesonbuild/compilers/c_function_attributes.py
index f663bfcc4..71ee9b22a 100644
--- a/mesonbuild/compilers/c_function_attributes.py
+++ b/mesonbuild/compilers/c_function_attributes.py
@@ -100,6 +100,8 @@ C_FUNC_ATTRIBUTES = {
'int foo(void) __attribute__((unused));',
'used':
'int foo(void) __attribute__((used));',
+ 'vector_size':
+ '__attribute__((vector_size(32))); int foo(void) { return 0; }',
'visibility': '''
int foo_def(void) __attribute__((visibility("default")));
int foo_hid(void) __attribute__((visibility("hidden")));