OSDN Git Service

Support for multiarch runtimes layout
authorPetr Hosek <phosek@chromium.org>
Thu, 28 Jun 2018 03:11:52 +0000 (03:11 +0000)
committerPetr Hosek <phosek@chromium.org>
Thu, 28 Jun 2018 03:11:52 +0000 (03:11 +0000)
commitd9df72a18eb7b3134a3c90ec6aa34084a0e69573
treecf803d8d0a07972643061b4599f6c813fe672bb8
parentf5d15403005663cd480b644eaf72a5661a1d0dbb
Support for multiarch runtimes layout

This change adds a support for multiarch style runtimes layout, so in
addition to the existing layout where runtimes get installed to:

lib/clang/$version/lib/$os

Clang now allows runtimes to be installed to:

lib/clang/$version/$target/lib

This also includes libc++, libc++abi and libunwind; today those are
assumed to be in Clang library directory built for host, with the
new layout it is possible to install libc++, libc++abi and libunwind
into the runtime directory built for different targets.

The use of new layout is enabled by setting the
LLVM_ENABLE_RUNTIME_TARGET_DIR CMake variable and is supported by both
projects and runtimes layouts. The runtimes CMake build has been further
modified to use the new layout when building runtimes for multiple
targets.

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@335809 91177308-0d34-0410-b5e6-96231b3b80d8
CMakeLists.txt
runtimes/CMakeLists.txt