diff options
| author | Petr Hosek <phosek@chromium.org> | 2018-06-28 03:11:52 +0000 |
|---|---|---|
| committer | Petr Hosek <phosek@chromium.org> | 2018-06-28 03:11:52 +0000 |
| commit | 7a290f168c98ef77a050254694d3f9f2721ef13d (patch) | |
| tree | 491a3e133740e25407a20ee8df166b98e4cb88fd /lib/Driver/ToolChains/Linux.cpp | |
| parent | bd011d17e27bab090b3a5ddf966be495ad8ed639 (diff) | |
| download | clang-7a290f168c98ef77a050254694d3f9f2721ef13d.tar.gz | |
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/cfe/trunk@335809 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Driver/ToolChains/Linux.cpp')
| -rw-r--r-- | lib/Driver/ToolChains/Linux.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Driver/ToolChains/Linux.cpp b/lib/Driver/ToolChains/Linux.cpp index 675d7b2029..3b99ce581f 100644 --- a/lib/Driver/ToolChains/Linux.cpp +++ b/lib/Driver/ToolChains/Linux.cpp @@ -803,6 +803,7 @@ void Linux::addLibCxxIncludePaths(const llvm::opt::ArgList &DriverArgs, llvm::opt::ArgStringList &CC1Args) const { const std::string& SysRoot = computeSysRoot(); const std::string LibCXXIncludePathCandidates[] = { + DetectLibcxxIncludePath(getDriver().ResourceDir + "/include/c++"), DetectLibcxxIncludePath(getDriver().Dir + "/../include/c++"), // If this is a development, non-installed, clang, libcxx will // not be found at ../include/c++ but it likely to be found at |
