aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/backend/backends.py
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2019-04-05 16:41:08 -0700
committerDylan Baker <dylan@pnwbakers.com>2019-04-05 16:41:08 -0700
commit6ad7fbf9509dd68792df7df08b785967a067d4c4 (patch)
treed4ed3b440daefa52c8fe9301c92505a53e96f49f /mesonbuild/backend/backends.py
parentb842b0b04aa8678f98cbec5f7022e75636ddf4a3 (diff)
downloadmeson-6ad7fbf9509dd68792df7df08b785967a067d4c4.zip
meson-6ad7fbf9509dd68792df7df08b785967a067d4c4.tar.gz
meson-6ad7fbf9509dd68792df7df08b785967a067d4c4.tar.bz2
dependencies/misc: don't special case threads
Instad of having special casing of threads in the backends and everywehre else, do what we did for openmp, create a real dependency. Then make use of the fact that dependencies can now have sub dependencies to add threads.
Diffstat (limited to 'mesonbuild/backend/backends.py')
-rw-r--r--mesonbuild/backend/backends.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/mesonbuild/backend/backends.py b/mesonbuild/backend/backends.py
index d752ac4..124d40f 100644
--- a/mesonbuild/backend/backends.py
+++ b/mesonbuild/backend/backends.py
@@ -643,8 +643,6 @@ class Backend:
commands += dep.get_exe_args(compiler)
# For 'automagic' deps: Boost and GTest. Also dependency('threads').
# pkg-config puts the thread flags itself via `Cflags:`
- if dep.need_threads():
- commands += compiler.thread_flags(self.environment)
# Fortran requires extra include directives.
if compiler.language == 'fortran':
for lt in target.link_targets: