From 6ad7fbf9509dd68792df7df08b785967a067d4c4 Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Fri, 5 Apr 2019 16:41:08 -0700 Subject: 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. --- mesonbuild/compilers/c.py | 4 ---- 1 file changed, 4 deletions(-) (limited to 'mesonbuild/compilers/c.py') diff --git a/mesonbuild/compilers/c.py b/mesonbuild/compilers/c.py index bcf8243..0a6e3b3 100644 --- a/mesonbuild/compilers/c.py +++ b/mesonbuild/compilers/c.py @@ -433,13 +433,9 @@ class CCompiler(Compiler): for d in dependencies: # Add compile flags needed by dependencies args += d.get_compile_args() - if d.need_threads(): - args += self.thread_flags(env) if mode == 'link': # Add link flags needed to find dependencies args += d.get_link_args() - if d.need_threads(): - args += self.thread_link_flags(env) args += self._get_basic_compiler_args(env, mode) -- cgit v1.1