Skip to content

Commit

Permalink
fix debug build
Browse files Browse the repository at this point in the history
  • Loading branch information
cz4rs committed Dec 27, 2023
1 parent feb47e6 commit 4bc0dfb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/catch2/catch.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -10958,7 +10958,9 @@ namespace Catch {
sigaltstack(&sigStack, &oldSigStack);
struct sigaction sa = { };

#if !defined(__CUDACC__)
sa.sa_handler = handleSignal;
#endif
sa.sa_flags = SA_ONSTACK;
for (std::size_t i = 0; i < sizeof(signalDefs)/sizeof(SignalDefs); ++i) {
sigaction(signalDefs[i].id, &sa, &oldSigActions[i]);
Expand Down

0 comments on commit 4bc0dfb

Please sign in to comment.