diff --git a/recipes/backward-cpp/all/conandata.yml b/recipes/backward-cpp/all/conandata.yml index cc2aefc12ee3c..820fb5a41ff51 100644 --- a/recipes/backward-cpp/all/conandata.yml +++ b/recipes/backward-cpp/all/conandata.yml @@ -5,6 +5,9 @@ sources: "1.5": url: "https://github.com/bombela/backward-cpp/archive/v1.5.tar.gz" sha256: "faf7d4fe7ca65117ed4fe7be9bff9628927bd95b49f71df63d5f99af233d1915" + "1.6": + url: "https://github.com/bombela/backward-cpp/archive/v1.6.tar.gz" + sha256: "c654d0923d43f1cea23d086729673498e4741fb2457e806cfaeaea7b20c97c10" patches: "1.4": - patch_file: "patches/backward-cpp-1.4.patch" @@ -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" diff --git a/recipes/backward-cpp/all/conanfile.py b/recipes/backward-cpp/all/conanfile.py index 9deb3a170b406..7bee789e46fba 100644 --- a/recipes/backward-cpp/all/conanfile.py +++ b/recipes/backward-cpp/all/conanfile.py @@ -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" diff --git a/recipes/backward-cpp/config.yml b/recipes/backward-cpp/config.yml index 21e5a85a81100..4db60009c1787 100644 --- a/recipes/backward-cpp/config.yml +++ b/recipes/backward-cpp/config.yml @@ -3,3 +3,5 @@ versions: folder: all "1.5": folder: all + "1.6": + folder: all