Skip to content

Commit

Permalink
Raise if os != Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
ericriff committed May 27, 2021
1 parent 6508e37 commit 1a29542
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions recipes/breakpad/all/conanfile.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from conans import ConanFile, AutoToolsBuildEnvironment, tools
from conans.errors import ConanInvalidConfiguration
import os
import textwrap

Expand All @@ -25,6 +26,10 @@ class BreakpadConan(ConanFile):
def _source_subfolder(self):
return "source_subfolder"

def validate(self):
if self.settings.os != "Linux":
raise ConanInvalidConfiguration("Breakpad can only be built on Linux. For other OSs check sentry-breakpad")

def config_options(self):
if self.settings.os == "Windows":
del self.options.fPIC
Expand Down

0 comments on commit 1a29542

Please sign in to comment.