diff --git a/OpenSim/Auxiliary/catch.hpp b/OpenSim/Auxiliary/catch.hpp index f64422ae18..926c1e9f8b 100644 --- a/OpenSim/Auxiliary/catch.hpp +++ b/OpenSim/Auxiliary/catch.hpp @@ -7910,7 +7910,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) diff --git a/Vendors/tropter/external/catch/catch.hpp b/Vendors/tropter/external/catch/catch.hpp index 1850fff125..fcbb086f43 100644 --- a/Vendors/tropter/external/catch/catch.hpp +++ b/Vendors/tropter/external/catch/catch.hpp @@ -6011,7 +6011,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_LINUX) // If we can use inline assembler, do it because this allows us to break