Skip to content

Commit

Permalink
aws-cdi-sdk: macOS is not supported
Browse files Browse the repository at this point in the history
  • Loading branch information
valgur committed Dec 23, 2023
1 parent e560ee0 commit ef581e0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions recipes/aws-cdi-sdk/all/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ def requirements(self):
self.requires("aws-sdk-cpp/1.9.234")

def validate(self):
if self.settings.os not in ["Linux", "FreeBSD", "Windows"]:
# The code compiles either `os_linux.c` or `os_windows.c` depending on the OS, but `os_linux.c` is not compatible with macOS.
# https://github.com/aws/aws-cdi-sdk/tree/mainline/src/common/src
raise ConanInvalidConfiguration(f"{self.settings.os} is not supported")
if not self.dependencies["aws-libfabric"].options.shared or not self.dependencies["aws-sdk-cpp"].options.shared:
raise ConanInvalidConfiguration("Cannot build with static dependencies")
if not self.dependencies["aws-sdk-cpp"].options.get_safe("monitoring"):
Expand Down

0 comments on commit ef581e0

Please sign in to comment.