Fix dependency('boost') on Cygwin

Fix dependency('boost') on Cygwin, broken in PR #2824

Like linux, Cygwin doesn't use -mt tags
Not sure what's correct for BSDs and Haiku
pull/2879/head
Jon Turney 7 years ago
parent 18675c3dea
commit 1a948b2e67
  1. 2
      mesonbuild/dependencies/misc.py

@ -365,7 +365,7 @@ class BoostDependency(ExternalDependency):
for module in self.requested_modules:
args = None
libname = 'boost_' + module
if self.is_multithreading and not mesonlib.for_linux(self.want_cross, self.env):
if self.is_multithreading and mesonlib.for_darwin(self.want_cross, self.env):
# - Linux leaves off -mt but libraries are multithreading-aware.
# - Mac requires -mt for multithreading, so should not fall back to non-mt libraries.
libname = libname + '-mt'

Loading…
Cancel
Save