[CMake] Use libtool for runtimes when building for Apple platform
authorPetr Hosek <phosek@chromium.org>
Sun, 2 Jun 2019 02:05:01 +0000 (02:05 +0000)
committerPetr Hosek <phosek@chromium.org>
Sun, 2 Jun 2019 02:05:01 +0000 (02:05 +0000)
commit84254dd8abb22c028191484371aab378ecf3cfd9
tree961bc09e31a50424d9c2e88f2b212419ab25e501
parent78c794a70bc89dca8d9fec986b42135feacb605b
[CMake] Use libtool for runtimes when building for Apple platform

LLVM CMake build already uses libtool instead of ar when building
for Apple platform and we should be using the same when building
runtimes. To do so, this change extracts the logic for finding
libtool into a separate file and then uses it from both the LLVM
build as well as the LLVM runtimes build.

Differential Revision: https://reviews.llvm.org/D62769

llvm-svn: 362313
llvm/CMakeLists.txt
llvm/cmake/modules/UseLibtool.cmake [new file with mode: 0644]
llvm/runtimes/CMakeLists.txt