[runtimes] Move libunwind, libc++abi and libc++ to lib/$target/c++ and include/c++
authorPetr Hosek <phosek@chromium.org>
Wed, 22 May 2019 21:08:33 +0000 (21:08 +0000)
committerPetr Hosek <phosek@chromium.org>
Wed, 22 May 2019 21:08:33 +0000 (21:08 +0000)
commit81f433b48c1892034e7061452ffb158e5244f62d
tree592299894bc8b5b9526c0e35d5d03d2283746e15
parent93f38e1f1ae23623a03d456b5b46f19f5c500036
[runtimes] Move libunwind, libc++abi and libc++ to lib/$target/c++ and include/c++

This change is a consequence of the discussion in "RFC: Place libs in
Clang-dedicated directories", specifically the suggestion that
libunwind, libc++abi and libc++ shouldn't be using Clang resource
directory. Tools like clangd make this assumption, but this is
currently not true for the LLVM_ENABLE_PER_TARGET_RUNTIME_DIR build.
This change addresses that by moving the output of these libraries to
lib/$target/c++ and include/c++ directories, leaving resource directory
only for compiler-rt runtimes and Clang builtin headers.

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

llvm-svn: 361432
12 files changed:
clang/lib/Driver/ToolChain.cpp
clang/lib/Driver/ToolChains/Fuchsia.cpp
clang/lib/Driver/ToolChains/Linux.cpp
clang/test/Driver/Inputs/basic_linux_libcxx_tree/usr/lib/x86_64-linux-gnu/c++/.keep [moved from clang/test/Driver/Inputs/basic_linux_libcxx_tree/usr/lib/x86_64-linux-gnu/.keep with 100% similarity]
clang/test/Driver/linux-per-target-runtime-dir.c
libcxx/CMakeLists.txt
libcxx/src/CMakeLists.txt
libcxxabi/CMakeLists.txt
libcxxabi/src/CMakeLists.txt
libunwind/CMakeLists.txt
libunwind/src/CMakeLists.txt
llvm/runtimes/CMakeLists.txt