Skip to content

Commit

Permalink
Fix for macOS on ARM
Browse files Browse the repository at this point in the history
  • Loading branch information
grhoten authored and horenmar committed Jul 1, 2020
1 parent 0f05c03 commit bad3c93
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion include/internal/catch_debugger.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit bad3c93

Please sign in to comment.