mirror of
https://github.com/redis/redis.git
synced 2026-10-28 16:35:46 +08:00
Backport #15975 to Redis 8.4 for MOD-19794. The hard-coded CommandLineTools SDK path can select SDK 27 even when Xcode selects SDK 26.5, failing macOS module linking with `tapi error: malformed file` / `unknown architecture`. Use `xcrun --show-sdk-path` and fail clearly if SDK resolution fails. Applied to the 3 affected Makefile(s) present on this branch: `modules/vector-sets/Makefile`, `src/modules/Makefile`, `tests/modules/Makefile`. Validation: all affected module targets built locally with SDK 26.5; dry-run link commands verified with unset, named (`macosx`), and absolute SDKROOT; failed xcrun lookup stops the Darwin build; Linux conditional remains unaffected; `git diff --check` passes. The local linker does not reproduce the older-linker incompatibility; affected-runner CI verification is still required. Ticket: https://redislabs.atlassian.net/browse/MOD-19794