mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-30 19:29:18 -06:00
Since commit29ea94e17c(BinUtils: Avoid llvm-ar on Apple platforms, 2022-03-03, v3.21.6~1^2) we do not consider `llvm-ar` at all on Apple platforms. However, there are existing cross-compiling use cases in which the toolchain has `llvm-ar` but not `ar`. Prior to the re-ordering in commitcf82300a63(BinUtils: Clarify search logic and make it more consistent, 2021-05-27, v3.21.0-rc1~119^2~2), we preferred `ar` and then `llvm-ar`. Restore the original order for Apple. Fixes: #23320
See the "Find Modules" section of the cmake-developer(7) manual page. For more information about how to contribute modules to CMake, see this page: https://gitlab.kitware.com/cmake/community/-/wikis/doc/cmake/dev/Module-Maintainers