Make development more pleasant on MacOS Arm64

This commit is contained in:
Justine Tunney 2023-11-12 05:42:17 -08:00
parent f7cad70da1
commit 0863427b3a
No known key found for this signature in database
GPG key ID: BE714B4575D6E328
8 changed files with 90 additions and 10 deletions

View file

@ -601,6 +601,13 @@ void abort(void) wontreturn;
"nop"); \
__builtin_unreachable(); \
} while (0)
#elif defined(__aarch64__)
#define notpossible \
do { \
asm("udf\t#0\n\t" \
"nop"); \
__builtin_unreachable(); \
} while (0)
#else
#define notpossible __builtin_trap()
#endif