From d5e32e1b7965f70acc9a708f5d8d0158cd1b2558 Mon Sep 17 00:00:00 2001 From: Konstantin Akimov Date: Thu, 30 May 2024 17:24:12 +0700 Subject: [PATCH 1/2] fix: disable gsl iostream feature for faster compile time We do not use this feature and implementation is trivial: just call `get()` --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 975936501c204..26a7f44bb1bb8 100644 --- a/configure.ac +++ b/configure.ac @@ -649,7 +649,7 @@ CXXFLAGS="$TEMP_CXXFLAGS" fi -CPPFLAGS="$CPPFLAGS -DHAVE_BUILD_INFO" +CPPFLAGS="$CPPFLAGS -DHAVE_BUILD_INFO -DGSL_NO_IOSTREAMS" AC_ARG_WITH([utils], [AS_HELP_STRING([--with-utils], From dc59cbc3155a0d4e0091d58b373c3e9dae740760 Mon Sep 17 00:00:00 2001 From: Konstantin Akimov Date: Thu, 30 May 2024 13:39:34 +0700 Subject: [PATCH 2/2] fix: optimize includes in gsl/pointer.h to speed up compile time it removes: - algorithm: `forward` is a part of utility not algorithm - system_error: `hash` is already declared in memory --- src/gsl/pointers.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/gsl/pointers.h b/src/gsl/pointers.h index bf444ef5f25bb..93a194999ea24 100644 --- a/src/gsl/pointers.h +++ b/src/gsl/pointers.h @@ -20,12 +20,10 @@ #include // for Ensures, Expects #include -#include // for forward #include // for ptrdiff_t, nullptr_t, size_t -#include // for shared_ptr, unique_ptr -#include // for hash +#include // for shared_ptr, unique_ptr, hash #include // for enable_if_t, is_convertible, is_assignable -#include // for declval +#include // for declval, forward #if !defined(GSL_NO_IOSTREAMS) #include // for ostream