Skip to content

Commit

Permalink
Merge pull request #187 from saraedum/fmt10
Browse files Browse the repository at this point in the history
Support building against fmt=10
  • Loading branch information
saraedum authored Dec 29, 2023
2 parents 859f9c6 + 9f40edd commit 84a92cc
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .codespellrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[codespell]
skip = libintervalxt/src/external/**/*,libintervalxt/test/external/**/*
ignore-words-list = rever
ignore-words-list = rever,parma
3 changes: 3 additions & 0 deletions doc/news/fmt10.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
**Fixed:**

* Fixed building libintervalxt with fmt version 10.
4 changes: 3 additions & 1 deletion libintervalxt/configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,9 @@ AC_CHECK_HEADERS([fmt/format.h], , AC_MSG_ERROR([fmt headers not found]))
AX_CXX_CHECK_LIB([fmt], [fmt::v6::getpagesize()], , [
AX_CXX_CHECK_LIB([fmt], [fmt::v7::getpagesize()], , [
AX_CXX_CHECK_LIB([fmt], [fmt::v8::report_system_error(int code=0, const char* message=nullptr)], , [
AX_CXX_CHECK_LIB([fmt], [fmt::v9::report_system_error(int code=0, const char* message=nullptr)], , [AC_MSG_ERROR([fmt library not found])], [-lfmt])
AX_CXX_CHECK_LIB([fmt], [fmt::v9::report_system_error(int code=0, const char* message=nullptr)], , [
AX_CXX_CHECK_LIB([fmt], [fmt::v10::report_system_error(int code=0, const char* message=nullptr)], , [AC_MSG_ERROR([fmt library not found])], [-lfmt])
], [-lfmt])
], [-lfmt])
], [-lfmt])
], [-lfmt])
Expand Down
2 changes: 1 addition & 1 deletion libintervalxt/environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ dependencies:
- cxx-compiler
- libeantic>=1,<2
- libflint
- fmt=9
- fmt=10
- gmp
- gmpxxll
- libexactreal>=3,<4
Expand Down
2 changes: 1 addition & 1 deletion libintervalxt/recipe/conda_build_config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ boost_cpp:
gmp:
- '6'
fmt:
- '9'
- '10'
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ TEST_CASE("Computation of SAF Invariant", "[interval_exchange_transformation][sa
auto iet = IET(lengths, {a, b, c, d}, {d, c, b, a});
CAPTURE(iet);

// Check that SAF invariant can be computed in an initiallly swapped IET.
// Check that SAF invariant can be computed in an initially swapped IET.
iet.swap();
iet.safInvariant();
iet.swap();
Expand Down
4 changes: 2 additions & 2 deletions pyintervalxt/src/pyintervalxt/cppyy_intervalxt.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,12 @@ def track(self, name, headers):
def __call__(self):
for length, headers in self.known_lengths:
if length not in LengthRegistrar.REGISTERED_LENGTHS:
if length == "intervalxt::cppyy::Lengths<std::vector<__gmp_expr<__mpz_struct[1],__mpz_struct[1]> > >":
if length.replace(' ', '') == "intervalxt::cppyy::Lengths<std::vector<__gmp_expr<__mpz_struct[1],__mpz_struct[1]>>>":
import logging
logging.warning("GMP does not provide a cereal interface yet. Therefore serialization of mpz lengths is not supported yet.")
continue

if length == "intervalxt::cppyy::Lengths<std::vector<__gmp_expr<__mpq_struct[1],__mpq_struct[1]> > >":
if length.replace(' ', '') == "intervalxt::cppyy::Lengths<std::vector<__gmp_expr<__mpq_struct[1],__mpq_struct[1]>>>":
import logging
logging.warning("GMP does not provide a cereal interface yet. Therefore serialization of mpq lengths is not supported yet.")
continue
Expand Down

0 comments on commit 84a92cc

Please sign in to comment.