Skip to content

Commit

Permalink
Changed ANDROID_STL to use settings.compiler.libcxx
Browse files Browse the repository at this point in the history
  • Loading branch information
akemimadoka authored and Croydon committed Sep 30, 2019
1 parent 9ce4cd7 commit 386c508
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def configure(self):
"but used %s" % (self.settings.arch, api_level))
if self.settings.compiler.version != "8":
raise ConanInvalidConfiguration("only Clang 8 is supported")
if self.settings.compiler.libcxx != "libc++":
if not str(self.settings.compiler.libcxx) in ["c++_shared", "c++_static"]:
raise ConanInvalidConfiguration("only libc++ standard library is supported")

def source(self):
Expand Down Expand Up @@ -207,7 +207,7 @@ def package_info(self):
self.env_info.ANDROID_PLATFORM = "android-%s" % self.settings.os.api_level
self.env_info.ANDROID_TOOLCHAIN = "clang"
self.env_info.ANDROID_ABI = self._android_abi
self.env_info.ANDROID_STL = "c++_static"
self.env_info.ANDROID_STL = str(self.settings.compiler.libcxx)

self.env_info.CMAKE_FIND_ROOT_PATH_MODE_PROGRAM = "BOTH"
self.env_info.CMAKE_FIND_ROOT_PATH_MODE_LIBRARY = "BOTH"
Expand Down

0 comments on commit 386c508

Please sign in to comment.