Skip to content

Commit

Permalink
Fix building on GCC 11.3.x
Browse files Browse the repository at this point in the history
Based on this patch:
woodard/libabigail@8ae8dcb

Please refer to the catch issue #2178 for details
catchorg/Catch2#2178

This might not work on all platforms

Signed-off-by: Christian Ege <[email protected]>
  • Loading branch information
Christian Ege committed Oct 21, 2022
1 parent aae1c5d commit bbe9fc0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/3rdparty/catch2/include/catch2/catch.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -10450,7 +10450,11 @@ namespace Catch {

// 32kb for the alternate stack seems to be sufficient. However, this value
// is experimentally determined, so that's not guaranteed.
static constexpr std::size_t sigStackSize = 32768 >= MINSIGSTKSZ ? 32768 : MINSIGSTKSZ;
//static constexpr std::size_t sigStackSize = 32768 >= MINSIGSTKSZ ? 32768 : MINSIGSTKSZ;
// Since glibc 2.33.9000 MINSIGSTKSZ is no more a constant. So,
// let's hardwire this for now as suggested by
// https://github.com/catchorg/Catch2/issues/2178.
static constexpr std::size_t sigStackSize = 32768;

static SignalDefs signalDefs[] = {
{ SIGINT, "SIGINT - Terminal interrupt signal" },
Expand Down

0 comments on commit bbe9fc0

Please sign in to comment.