Skip to content

Commit 5682472

Browse files
committed
armcpu: add macOS arm64 support for DEBUG_BREAK macro
1 parent 1108d9b commit 5682472

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

core/arm/armcpu.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@
1212
# define __has_builtin(builtin) 0
1313
#endif
1414

15-
#ifdef _MSC_VER
15+
#if defined(__aarch64__) && defined(__APPLE__)
16+
# define DEBUG_BREAK __builtin_trap()
17+
#elif defined(_MSC_VER)
1618
# define DEBUG_BREAK __debugbreak()
1719
#else
1820
# define DEBUG_BREAK asm("int3")

0 commit comments

Comments
 (0)