Merge branch 'deprecate-force_posix_threads' into 'main'

build: deprecate force_posix_threads build option

Closes #2592

See merge request GNOME/glib!2474
This commit is contained in:
Philip Withnall 2022-02-08 13:15:33 +00:00
commit 91a12c4927

View File

@ -1858,6 +1858,10 @@ glibconfig_conf.set('G_ATOMIC_LOCK_FREE', have_atomic_lock_free)
# === Threads === # === Threads ===
if get_option('force_posix_threads')
warning('DEPRECATION: Option \'force_posix_threads\' is deprecated and will be removed after GLib 2.72; please file an issue with your use case if you still require it')
endif
# Determination of thread implementation # Determination of thread implementation
if host_system == 'windows' and not get_option('force_posix_threads') if host_system == 'windows' and not get_option('force_posix_threads')
thread_dep = [] thread_dep = []