aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/dependencies/boost.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/dependencies/boost.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/dependencies/boost.py')
-rw-r--r--mesonbuild/dependencies/boost.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/mesonbuild/dependencies/boost.py b/mesonbuild/dependencies/boost.py
index 6a8050d..62a652a 100644
--- a/mesonbuild/dependencies/boost.py
+++ b/mesonbuild/dependencies/boost.py
@@ -22,6 +22,7 @@ from .. import mesonlib
from ..environment import detect_cpu_family
from .base import (DependencyException, ExternalDependency)
+from .misc import ThreadDependency
# On windows 3 directory layouts are supported:
# * The default layout (versioned) installed:
@@ -103,6 +104,8 @@ class BoostDependency(ExternalDependency):
self.is_multithreading = threading == "multi"
self.requested_modules = self.get_requested(kwargs)
+ if 'thread' in self.requested_modules:
+ self.ext_deps.append(ThreadDependency(environment, kwargs))
self.boost_root = None
self.boost_roots = []
@@ -488,9 +491,6 @@ class BoostDependency(ExternalDependency):
def get_sources(self):
return []
- def need_threads(self):
- return 'thread' in self.requested_modules
-
# Generated with boost_names.py
BOOST_LIBS = [