summaryrefslogtreecommitdiff
path: root/mesonbuild/compilers
diff options
context:
space:
mode:
authorBruce Merry <bmerry@sarao.ac.za>2023-10-23 14:43:32 +0200
committerEli Schwartz <eschwartz93@gmail.com>2025-11-10 23:00:59 -0500
commitf9fc48c61c9545e0b029b1e217078edfa2812403 (patch)
treee1cf4aeb22d38c96711783a96deb438f36fe5798 /mesonbuild/compilers
parenta60564e6058fd9e742f5a5fc4ab7576b8381c604 (diff)
downloadmeson-f9fc48c61c9545e0b029b1e217078edfa2812403.tar.gz
Fix detection of ifunc attribute on clang++
clang++ seems to require the resolver function to have external linkage, so the test code that was used was failing even though clang does support the attribute. Closes #12413.
Diffstat (limited to 'mesonbuild/compilers')
-rw-r--r--mesonbuild/compilers/c_function_attributes.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/compilers/c_function_attributes.py b/mesonbuild/compilers/c_function_attributes.py
index a7258a1ca..4c8aa7054 100644
--- a/mesonbuild/compilers/c_function_attributes.py
+++ b/mesonbuild/compilers/c_function_attributes.py
@@ -139,7 +139,7 @@ CXX_FUNC_ATTRIBUTES = {
'ifunc':
('extern "C" {'
'int my_foo(void) { return 0; }'
- 'static int (*resolve_foo(void))(void) { return my_foo; }'
+ 'int (*resolve_foo(void))(void) { return my_foo; }'
'}'
'int foo(void) __attribute__((ifunc("resolve_foo")));'),
}