Skip to content

Commit

Permalink
(#23859) xsimd: add version 13.0.0
Browse files Browse the repository at this point in the history
* xsimd: add version 13.0.0

* drop support apple-clang/13 with cppstd=17

* fix type mismatch

* update condition

* fix type mismatch

* more precise condition on apple-clang

* add version 12.1.1

* drop suport c++20 in apple-clang <= 13
  • Loading branch information
toge committed May 13, 2024
1 parent e6836d3 commit 680a470
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
6 changes: 6 additions & 0 deletions recipes/xsimd/all/conandata.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
sources:
"13.0.0":
url: "https://github.com/xtensor-stack/xsimd/archive/13.0.0.tar.gz"
sha256: "8bdbbad0c3e7afa38d88d0d484d70a1671a1d8aefff03f4223ab2eb6a41110a3"
"12.1.1":
url: "https://github.com/xtensor-stack/xsimd/archive/12.1.1.tar.gz"
sha256: "73f94a051278ef3da4533b691d31244d12074d5d71107473a9fd8d7be15f0110"
"12.1.0":
url: "https://github.com/xtensor-stack/xsimd/archive/12.1.0.tar.gz"
sha256: "86b86e0aeba7a85575f6e079728f0c2b65307dddb7210487f2b7cb261ac8a4a2"
Expand Down
6 changes: 6 additions & 0 deletions recipes/xsimd/all/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,12 @@ def validate(self):
if Version(self.version) < "8.0.0" and is_apple_os(self) and self.settings.arch in ["armv8", "armv8_32", "armv8.3"]:
raise ConanInvalidConfiguration(f"{self.ref} doesn't support macOS M1")

# TODO: There are compilation errors on apple-clang/13.0.0 with cppstd=17
if self.settings.compiler == "apple-clang" and \
Version(self.settings.compiler.version).major <= "13" and \
self.settings.compiler.get_safe("cppstd") in ["17", "gnu17", "20", "gnu20",]:
raise ConanInvalidConfiguration(f"{self.ref} doesn't support apple-clang 13 with cppstd=17 or later")

if self.settings.compiler.get_safe("cppstd"):
check_min_cppstd(self, self._min_cppstd)
minimum_version = self._compilers_minimum_version.get(str(self.settings.compiler), False)
Expand Down
4 changes: 4 additions & 0 deletions recipes/xsimd/config.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
versions:
"13.0.0":
folder: all
"12.1.1":
folder: all
"12.1.0":
folder: all
"12.0.0":
Expand Down

0 comments on commit 680a470

Please sign in to comment.