Skip to content

Commit

Permalink
ncurses: fix linter error
Browse files Browse the repository at this point in the history
  • Loading branch information
valgur committed Oct 16, 2023
1 parent fa7f512 commit e08332d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion recipes/ncurses/all/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def requirements(self):
self.requires("naive-tsearch/0.1.1")

def validate(self):
if cross_building(self) and ("arm" in self.settings.arch or "arm" in self._settings_build.arch):
if cross_building(self) and ("arm" in str(self.settings.arch) or "arm" in str(self._settings_build.arch)):
# FIXME: Cannot build ncurses from x86_64 to armv8 (Apple M1). Cross building from Linux/x86_64 to Mingw/x86_64 works flawless.
# FIXME: Need access to environment of build profile to set build compiler (BUILD_CC/CC_FOR_BUILD)
raise ConanInvalidConfiguration("Cross building to/from arm is (currently) not supported")
Expand Down

0 comments on commit e08332d

Please sign in to comment.