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 24, 2020
1 parent e28018c commit a25c1a2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/catch2/internal/catch_debugger.hpp
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

1 comment on commit a25c1a2

@barracuda156
Copy link
Contributor

@barracuda156 barracuda156 commented on a25c1a2 Jan 10, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.