]> granicus.if.org Git - clang/commit
[clang] [ToolChains/NetBSD] Support relative libc++ header path
authorMichal Gorny <mgorny@gentoo.org>
Sun, 3 Mar 2019 10:06:34 +0000 (10:06 +0000)
committerMichal Gorny <mgorny@gentoo.org>
Sun, 3 Mar 2019 10:06:34 +0000 (10:06 +0000)
commit1d3441ae7915d433cd65e33eb9233ffdcc9abccb
treec760a5c694a804f018b73dd1430895336e0ed378
parent2d39f7cc1f9ddd08012f5a36cb62f5b6f5e34347
[clang] [ToolChains/NetBSD] Support relative libc++ header path

Support locating the libc++ header files relatively to the clang
executable, in addition to the default system path.  This is meant
to cover two use cases: running just-built clang from the install
directory, and running installed clang from non-standard location
(e.g. /usr/local).

This is the first step towards ensuring that tests of more LLVM projects
can work out-of-the-box within the build tree, and use the correct set
of headers (rather than e.g. mixing just-built clang+libcxx with system
install of libcxx).  It avoids requiring the user to hack around missing
include paths, or LLVM build system to replicate system-specific C++
library defaults in order to append appropriate paths implicitly.

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@355282 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Driver/ToolChains/NetBSD.cpp