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