diff options
| author | George Rhoten | 2020-07-01 08:36:23 -0700 |
|---|---|---|
| committer | Martin Hořeňovský | 2020-07-24 22:34:22 +0200 |
| commit | a25c1a24af8bffd35727a888a307ff0280cf9387 (patch) | |
| tree | f30603aa2389488127bcf709fa22f490685b6c24 /src | |
| parent | e28018c659dc4b4bf2e0dfb23c5e2433f9fa90ac (diff) | |
| download | catch3-a25c1a24af8bffd35727a888a307ff0280cf9387.tar.gz | |
Fix for macOS on ARM
Diffstat (limited to 'src')
| -rw-r--r-- | src/catch2/internal/catch_debugger.hpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/catch2/internal/catch_debugger.hpp b/src/catch2/internal/catch_debugger.hpp index 16c68c52..c5f224dc 100644 --- a/src/catch2/internal/catch_debugger.hpp +++ b/src/catch2/internal/catch_debugger.hpp @@ -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) |