]> granicus.if.org Git - clang/commit
Teach clang to look for libcxx in /usr/local/include/c++ on Linux
authorYaron Keren <yaron.keren@gmail.com>
Tue, 17 May 2016 19:01:16 +0000 (19:01 +0000)
committerYaron Keren <yaron.keren@gmail.com>
Tue, 17 May 2016 19:01:16 +0000 (19:01 +0000)
commit89a379de617e1914a6aa0ab8ad757bc3a74800be
tree804ac5de2929b91c94d021b781dbd30c8a33a636
parentb4878b5d4b65c0f5fb41bb9a402c0d4acd171654
Teach clang to look for libcxx in /usr/local/include/c++ on Linux

As The default CMAKE install prefix is /usr/local ( https://cmake.org/cmake/help/v3.0/variable/CMAKE_INSTALL_PREFIX.html ),
sudo ninja install ends up installing clang, LLVM and libcxx under /usr/local.
In development scenario, when clang is run from the build location it will not
find libcxx at neither (build location)/../include/c++ nor /usr/include/c++.
This patch lets development clang find system installed libcxx without adding
-isystem /usr/local/include/c++. Also addresses the FIXME by explaining the
use-case for these include paths.

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