Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/src/catch2/internal
diff options
context:
space:
mode:
authorGeorge Rhoten2020-07-01 08:36:23 -0700
committerMartin Hořeňovský2020-07-24 22:34:22 +0200
commita25c1a24af8bffd35727a888a307ff0280cf9387 (patch)
treef30603aa2389488127bcf709fa22f490685b6c24 /src/catch2/internal
parente28018c659dc4b4bf2e0dfb23c5e2433f9fa90ac (diff)
downloadcatch3-a25c1a24af8bffd35727a888a307ff0280cf9387.tar.gz
Fix for macOS on ARM
Diffstat (limited to 'src/catch2/internal')
-rw-r--r--src/catch2/internal/catch_debugger.hpp6
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)