mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-08 10:14:04 +02:00
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
This commit is contained in:
committed by
Philip Withnall
parent
bda1ad5918
commit
9430082bbf
@@ -142,11 +142,6 @@ g_have_gnuc_visibility = cc.compiles('''
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
void
|
void
|
||||||
__attribute__ ((visibility ("protected")))
|
|
||||||
f_protected (void)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
void
|
|
||||||
__attribute__ ((visibility ("default")))
|
__attribute__ ((visibility ("default")))
|
||||||
f_default (void)
|
f_default (void)
|
||||||
{
|
{
|
||||||
@@ -155,7 +150,6 @@ g_have_gnuc_visibility = cc.compiles('''
|
|||||||
{
|
{
|
||||||
f_hidden();
|
f_hidden();
|
||||||
f_internal();
|
f_internal();
|
||||||
f_protected();
|
|
||||||
f_default();
|
f_default();
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user