[libcxx] Use libtool when merging archives on Apple platforms
authorPetr Hosek <phosek@chromium.org>
Sun, 2 Jun 2019 01:14:31 +0000 (01:14 +0000)
committerPetr Hosek <phosek@chromium.org>
Sun, 2 Jun 2019 01:14:31 +0000 (01:14 +0000)
commit737de4d363ede4b90dd5609af0494fb39af53865
tree6287ff3064181d33b26508765285564b90f1e4fb
parentfe699c32a2081bde203e99593ed906fce651b3dd
[libcxx] Use libtool when merging archives on Apple platforms

ar doesn't produce the correct results when used for linking static
archives on Apple platforms, so instead use libtool -static which is
the official way to build static archives on those platforms.

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

llvm-svn: 362311
libcxx/src/CMakeLists.txt
libcxx/utils/merge_archives.py
libcxxabi/src/CMakeLists.txt