Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FFI/ARM64/OSX: Fix vararg call handling.
Thanks to Igor Munkin. (cherry picked from commit 521b367) This patch fixes the issue introduced by commit 2e2fb8f ('OSX/iOS: Handle iOS simulator and ARM64 Macs.'). Within the mentioned commit LJ_TARGET_IOS define is set via Apple system header to enable several features (e.g. JIT and external unwinder) on ARM64 Macs, but its usage was not adjusted source-wide. This is done for FFI machinery within this commit. All LJ_TARGET_IOS uses in FFI sources are done with LJ_TARGET_ARM64 define being set, so we can simply replace these occurrences with LJ_TARGET_OSX. Igor Munkin: * added the description and the test for the problem Resolves tarantool/tarantool#6066 Part of tarantool/tarantool#5629 Relates to tarantool/tarantool#5983 Reported-by: Nikita Pettik <[email protected]> Reviewed-by: Sergey Kaplun <[email protected]> Reviewed-by: Sergey Ostanevich <[email protected]> Signed-off-by: Igor Munkin <[email protected]>
- Loading branch information