diff --git a/ext/catch/catch.hpp b/ext/catch/catch.hpp index 362f8693f7..47b620d68d 100644 --- a/ext/catch/catch.hpp +++ b/ext/catch/catch.hpp @@ -1368,7 +1368,11 @@ namespace Catch { #ifdef CATCH_PLATFORM_MAC - #define CATCH_TRAP() __asm__("int $3\n" : : ) /* NOLINT */ + #if defined(__i386__) || defined(__x86_64__) + #define CATCH_TRAP() __asm__("int $3\n" : : ) /* NOLINT */ + #elif defined(__aarch64__) + #define CATCH_TRAP() __asm__(".inst 0xd4200000") + #endif #elif defined(CATCH_PLATFORM_LINUX) // If we can use inline assembler, do it because this allows us to break