diff options
author | Matthew Waters <matthew@centricular.com> | 2019-12-03 13:33:16 +1100 |
---|---|---|
committer | Matthew Waters <matthew@centricular.com> | 2019-12-03 13:33:16 +1100 |
commit | 86747cea08e6bf984ce0c1f34695909e146d9704 (patch) | |
tree | f2bd9b5e032f4025332d2bf29d50d248f6533072 | |
parent | 32c84b076d990fbc5510bd84a27b1e40660b5d52 (diff) | |
download | glib-86747cea08e6bf984ce0c1f34695909e146d9704.tar.gz |
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
-rw-r--r-- | meson.build | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/meson.build b/meson.build index e0a2700cb..f8bb7403a 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; } |