From d7d350599d487039cddf37611b0dfd5eab2a49ac Mon Sep 17 00:00:00 2001 From: Tom Poole Date: Tue, 18 May 2021 16:45:17 +0100 Subject: [PATCH] macOS: Use __builtin_debugtrap for assertions on ARM --- modules/juce_core/system/juce_PlatformDefs.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/juce_core/system/juce_PlatformDefs.h b/modules/juce_core/system/juce_PlatformDefs.h index 4e94c966e7..eab4a30036 100644 --- a/modules/juce_core/system/juce_PlatformDefs.h +++ b/modules/juce_core/system/juce_PlatformDefs.h @@ -59,7 +59,7 @@ namespace juce #endif //============================================================================== -#if JUCE_IOS || (JUCE_MAC && JUCE_ARM) || JUCE_LINUX || JUCE_BSD +#if JUCE_IOS || JUCE_LINUX || JUCE_BSD /** This will try to break into the debugger if the app is currently being debugged. If called by an app that's not being debugged, the behaviour isn't defined - it may crash or not, depending on the platform. @@ -77,6 +77,8 @@ namespace juce #else #define JUCE_BREAK_IN_DEBUGGER { asm ("int $3"); } #endif +#elif JUCE_ARM && JUCE_MAC + #define JUCE_BREAK_IN_DEBUGGER { __builtin_debugtrap(); } #elif JUCE_ANDROID #define JUCE_BREAK_IN_DEBUGGER { __builtin_trap(); } #else