From 508f41bf152c837788ab3979ee53abd4554eb0f9 Mon Sep 17 00:00:00 2001 From: George Rhoten Date: Wed, 1 Jul 2020 08:36:23 -0700 Subject: [PATCH] Fix for macOS on ARM --- include/internal/catch_debugger.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/include/internal/catch_debugger.h b/include/internal/catch_debugger.h index 77db8aed..a0148aa8 100644 --- a/include/internal/catch_debugger.h +++ b/include/internal/catch_debugger.h @@ -17,7 +17,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_IPHONE)