Skip to content

Commit

Permalink
disable fiber for boost-1.84 on Windows
Browse files Browse the repository at this point in the history
Signed-off-by: Uilian Ries <uilianries@gmail.com>
  • Loading branch information
uilianries committed Jan 23, 2024
1 parent 35806e2 commit 7024790
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions recipes/boost/all/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -401,6 +401,10 @@ def disable_cobalt():
elif Version(self.settings.compiler.version) < min_compiler_version:
disable_cobalt()

# FIXME: Compilation errors on msvc shared build for boost.fiber https://github.com/boostorg/fiber/issues/314
if is_msvc(self):
self.options.without_fiber = True

@property
def _configure_options(self):
return self._dependencies["configure_options"]
Expand Down Expand Up @@ -461,10 +465,6 @@ def configure(self):
if self.options.without_fiber:
self.options.rm_safe("numa")

# FIXME: Compilation errors on msvc shared build for boost.fiber https://github.com/boostorg/fiber/issues/314
if Version(self.version) >= "1.84.0" and is_msvc(self) and self._shared:
self.options.without_fiber = True

def layout(self):
basic_layout(self, src_folder="src")

Expand Down Expand Up @@ -501,7 +501,7 @@ def validate(self):
if is_msvc(self) and self._shared and is_msvc_static_runtime(self):
raise ConanInvalidConfiguration("Boost can not be built as shared library with MT runtime.")

# FIXME: In 1.84.0, there are compilation errors on msvc shared build for boost.fiber.
# FIXME: In 1.84.0, there are compilation errors on msvc shared build for boost.fiber. https://github.com/boostorg/fiber/issues/314
if Version(self.version) >= "1.84.0" and is_msvc(self) and self._shared and not self.options.without_fiber:
raise ConanInvalidConfiguration("Boost.fiber can not be built as shared library on MSVC.")

Expand Down

0 comments on commit 7024790

Please sign in to comment.