[glib: 4/5] build: Drop unused `G_ATOMIC_OP_MEMORY_BARRIER_NEEDED`
- From: Sebastian Dröge <sdroege src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib: 4/5] build: Drop unused `G_ATOMIC_OP_MEMORY_BARRIER_NEEDED`
- Date: Tue, 19 May 2020 17:23:13 +0000 (UTC)
commit c1d7097d0a756bf8e36bad6eba1fb6f23afafc3a
Author: Philip Withnall <withnall endlessm com>
Date: Thu Feb 13 16:40:30 2020 +0000
build: Drop unused `G_ATOMIC_OP_MEMORY_BARRIER_NEEDED`
See the previous commit.
Signed-off-by: Philip Withnall <withnall endlessm com>
Helps: #1323
glib/glibconfig.h.in | 1 -
gobject/tests/meson.build | 2 +-
meson.build | 12 ------------
3 files changed, 1 insertion(+), 14 deletions(-)
---
diff --git a/glib/glibconfig.h.in b/glib/glibconfig.h.in
index 7ef8c481d..873cb0314 100644
--- a/glib/glibconfig.h.in
+++ b/glib/glibconfig.h.in
@@ -147,7 +147,6 @@ typedef unsigned @glib_intptr_type_define@ guintptr;
#define G_THREADS_ENABLED
#define G_THREADS_IMPL_@g_threads_impl_def@
-#mesondefine G_ATOMIC_OP_MEMORY_BARRIER_NEEDED
#mesondefine G_ATOMIC_LOCK_FREE
#define GINT16_TO_@g_bs_native@(val) ((gint16) (val))
diff --git a/gobject/tests/meson.build b/gobject/tests/meson.build
index 1d0ef4a53..8837f1a65 100644
--- a/gobject/tests/meson.build
+++ b/gobject/tests/meson.build
@@ -105,7 +105,7 @@ foreach test_name, extra_args : gobject_tests
# FIXME: https://gitlab.gnome.org/GNOME/glib/issues/1316
# aka https://bugs.debian.org/880883
- if test_name == 'closure-refcount' and ['arm', 'aarch64'].contains(host_cpu_family)
+ if test_name == 'closure-refcount' and ['arm', 'aarch64'].contains(host_machine.cpu_family())
timeout = timeout * 10
endif
diff --git a/meson.build b/meson.build
index 40e7e5138..c9437aeb6 100644
--- a/meson.build
+++ b/meson.build
@@ -1676,18 +1676,6 @@ foreach d : inet_defines
glibconfig_conf.set(d[1], val)
endforeach
-# We need a more robust approach here...
-host_cpu_family = host_machine.cpu_family()
-if host_cpu_family == 'x86' or host_cpu_family == 'x86_64' or host_cpu_family == 's390' or host_cpu_family
== 's390x' or host_cpu_family.startswith('arm') or host_cpu_family == 'aarch64' or
host_cpu_family.startswith('crisv32') or host_cpu_family.startswith('etrax')
- glib_memory_barrier_needed = false
-elif host_cpu_family.startswith('sparc') or host_cpu_family.startswith('alpha') or
host_cpu_family.startswith('powerpc') or host_cpu_family == 'ia64'
- glib_memory_barrier_needed = true
-else
- warning('Unknown host cpu: ' + host_cpu_family)
- glib_memory_barrier_needed = true
-endif
-glibconfig_conf.set('G_ATOMIC_OP_MEMORY_BARRIER_NEEDED', glib_memory_barrier_needed)
-
# We need to decide at configure time if GLib will use real atomic
# operations ("lock free") or emulated ones with a mutex. This is
# because we must put this information in glibconfig.h so we know if
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]