build: deprecate force_posix_threads build option

This commit is contained in:
Christoph Reiter 2022-02-08 13:15:33 +00:00 committed by Philip Withnall
parent 50d23f9680
commit 17a5958f79

View File

@ -1858,6 +1858,10 @@ glibconfig_conf.set('G_ATOMIC_LOCK_FREE', have_atomic_lock_free)
# === 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
if host_system == 'windows' and not get_option('force_posix_threads')
thread_dep = []