OSDN Git Service

[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)
commitce40381734023a3f265bf5e0c4cc7703422df682
tree7e3eb2aec2342dfa596a5a7caaf3fe063c4138c4
parent393ae63d24599cc8a29ca2a6f409dd4b6baead1a
[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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@362313 91177308-0d34-0410-b5e6-96231b3b80d8
CMakeLists.txt
cmake/modules/UseLibtool.cmake [new file with mode: 0644]
runtimes/CMakeLists.txt