[glib/glib-2-62: 1/2] build: don't check for protected visibility
- From: Sebastian Dröge <sdroege src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib/glib-2-62: 1/2] build: don't check for protected visibility
- Date: Tue, 3 Dec 2019 12:39:08 +0000 (UTC)
commit 9430082bbfbf3802156e37f3ad3b4caf43d921b1
Author: Matthew Waters <matthew centricular com>
Date: Tue Dec 3 13:33:16 2019 +1100
build: don't check for protected visibility
It's not supported on macOS' clang compiler and will fail the visibility
check and thus make the G_GNUC_INTERNAL attribute do nothing.
Compiler stderr:
/var/folders/nt/j2v2x4wd5cl33fq27mm31mwc0000gn/T/tmpxxf2zzi_/testfile.c:13:19: error: target does not
support 'protected' visibility; using 'default' [-Werror,-Wunsupported-visibility]
__attribute__ ((visibility ("protected")))
^
1 error generated.
Checking if "GNU C visibility attributes test" compiles: NO
meson.build | 6 ------
1 file changed, 6 deletions(-)
---
diff --git a/meson.build b/meson.build
index 4bbf4c295..df5b770da 100644
--- a/meson.build
+++ b/meson.build
@@ -142,11 +142,6 @@ g_have_gnuc_visibility = cc.compiles('''
{
}
void
- __attribute__ ((visibility ("protected")))
- f_protected (void)
- {
- }
- void
__attribute__ ((visibility ("default")))
f_default (void)
{
@@ -155,7 +150,6 @@ g_have_gnuc_visibility = cc.compiles('''
{
f_hidden();
f_internal();
- f_protected();
f_default();
return 0;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]