Explicitly specify CMAKE_AR in WinMsvc.cmake
authorGwen Mittertreiner <gwenm@fb.com>
Wed, 23 Sep 2020 23:20:06 +0000 (16:20 -0700)
committerShoaib Meenai <smeenai@fb.com>
Thu, 24 Sep 2020 01:05:29 +0000 (18:05 -0700)
commitee7ee71f40e904a8380d6439ac4741304b4a2dfd
tree3a4d820e126ebed3333a7f5a1dea5778298d8cf6
parentf5435399e823746bbe1737b95c853d77a42e1ac3
Explicitly specify CMAKE_AR in WinMsvc.cmake

As of cmake 3.18, cmake changes how it searches for compilers for
Windows (see
https://gitlab.kitware.com/cmake/cmake/-/commit/55196a1440e26917d40e6a7a3eb8d9fb323fa657)
and now finds llvm-ar instead of llvm-lib as CMAKE_AR. This explicitly
specifies CMAKE_AR as llvm-lib so the correct program is found.

Reviewed By: smeenai

Differential Revision: https://reviews.llvm.org/D88176
llvm/cmake/modules/LLVMExternalProjectUtils.cmake
llvm/cmake/platforms/WinMsvc.cmake