Skip to content

Commit

Permalink
(#7053) add backward-cpp/1.6
Browse files Browse the repository at this point in the history
* add backward-cpp/1.6

* check cppstd

* disable gcc vesion <=5

* disable clang vesion <=5
  • Loading branch information
AndreyMlashkin authored Aug 29, 2021
1 parent 987b077 commit 334e4a9
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
6 changes: 6 additions & 0 deletions recipes/backward-cpp/all/conandata.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ sources:
"1.5":
url: "https:/bombela/backward-cpp/archive/v1.5.tar.gz"
sha256: "faf7d4fe7ca65117ed4fe7be9bff9628927bd95b49f71df63d5f99af233d1915"
"1.6":
url: "https:/bombela/backward-cpp/archive/v1.6.tar.gz"
sha256: "c654d0923d43f1cea23d086729673498e4741fb2457e806cfaeaea7b20c97c10"
patches:
"1.4":
- patch_file: "patches/backward-cpp-1.4.patch"
Expand All @@ -25,3 +28,6 @@ patches:
base_path: "source_subfolder"
- patch_file: "patches/backward-cpp-1.5-mingw.patch"
base_path: "source_subfolder"
"1.6":
- patch_file: "patches/backward-cpp-1.5.patch"
base_path: "source_subfolder"
5 changes: 4 additions & 1 deletion recipes/backward-cpp/all/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,10 @@ def validate(self):
if self.settings.os not in self._supported_os():
raise ConanInvalidConfiguration("upstream backward-cpp v{0} is not"
" supported in {1}.".format(self.version, self.settings.os))

if self.settings.compiler.get_safe("cppstd"):
tools.check_min_cppstd(self, 17)
if (self.settings.compiler == "gcc" or self.settings.compiler == "clang") and tools.Version(self.settings.compiler.version) <= 5:
raise ConanInvalidConfiguration("Compiler version is not supported")
if self.settings.os == "Macos" and \
not self._has_stack_details("backtrace_symbol"):
raise ConanInvalidConfiguration("only stack_details=backtrace_symbol"
Expand Down
2 changes: 2 additions & 0 deletions recipes/backward-cpp/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ versions:
folder: all
"1.5":
folder: all
"1.6":
folder: all

0 comments on commit 334e4a9

Please sign in to comment.