mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-14 15:56:13 +03:00

On x86_64, we have to use specialized forms of `objc_msgSend` depending on the return type (and the byte size of the return type). If we don't do this, the calling convention is wrong and we'll get a segfault when objc_msgSend tries to read a register that is [rightly] not set. On aarch64, we do not have this issue because the calling convention is different and objc_msgSend handles all cases.