summaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gnome.org>2023-05-09 13:13:00 +0100
committerEmmanuele Bassi <ebassi@gnome.org>2023-05-09 16:43:25 +0100
commit265bc905243d069e953f67abd6366869fc2d8baa (patch)
treec999dd6256b054a2757c6b851742077f8e1103da /testsuite
parent197d921347442d74fa36559d7c1b93bfda4e23de (diff)
downloadgtk+-265bc905243d069e953f67abd6366869fc2d8baa.tar.gz
build: Use Meson's gnu_symbol_visibility
Instead of injecting `-fvisibility=hidden` depending on a compiler check ourselves, let Meson do it for us. This also avoids us having to filter `-fvisibility=hidden` when reusing the common compiler flags.
Diffstat (limited to 'testsuite')
-rw-r--r--testsuite/a11y/meson.build3
-rw-r--r--testsuite/gtk/meson.build3
-rw-r--r--testsuite/reftests/meson.build3
3 files changed, 3 insertions, 6 deletions
diff --git a/testsuite/a11y/meson.build b/testsuite/a11y/meson.build
index c43465efb2..733f623217 100644
--- a/testsuite/a11y/meson.build
+++ b/testsuite/a11y/meson.build
@@ -38,8 +38,7 @@ test_cargs = []
foreach flag: common_cflags
if flag not in ['-Werror=missing-prototypes', '-Wmissing-prototypes',
- '-Werror=missing-declarations', '-Wmissing-declarations',
- '-fvisibility=hidden']
+ '-Werror=missing-declarations', '-Wmissing-declarations']
test_cargs += flag
endif
endforeach
diff --git a/testsuite/gtk/meson.build b/testsuite/gtk/meson.build
index 11560a95f4..7a27180854 100644
--- a/testsuite/gtk/meson.build
+++ b/testsuite/gtk/meson.build
@@ -148,8 +148,7 @@ endif
foreach flag: common_cflags
if flag not in ['-Werror=missing-prototypes', '-Wmissing-prototypes',
- '-Werror=missing-declarations', '-Wmissing-declarations',
- '-fvisibility=hidden']
+ '-Werror=missing-declarations', '-Wmissing-declarations']
test_cargs += flag
endif
endforeach
diff --git a/testsuite/reftests/meson.build b/testsuite/reftests/meson.build
index 1cc8a4302c..793ba19eb7 100644
--- a/testsuite/reftests/meson.build
+++ b/testsuite/reftests/meson.build
@@ -3,8 +3,7 @@
reftest_cflags = []
foreach flag: common_cflags
if flag not in ['-Werror=missing-prototypes', '-Wmissing-prototypes',
- '-Werror=missing-declarations', '-Wmissing-declarations',
- '-fvisibility=hidden']
+ '-Werror=missing-declarations', '-Wmissing-declarations']
reftest_cflags += flag
endif
endforeach