]> granicus.if.org Git - clang/commit
Add support for CPATH and friends.
authorBenjamin Kramer <benny.kra@googlemail.com>
Thu, 22 Sep 2011 21:41:16 +0000 (21:41 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Thu, 22 Sep 2011 21:41:16 +0000 (21:41 +0000)
commit47adebef0df6dce752fe9a45e9190e8005b5d07c
tree096b430ad15076f1b5170b72de873de8ad45e207
parent4cd06348a8c7b3559e9f437439dfc75ff7a04e88
Add support for CPATH and friends.

This moves the existing code for CPATH into the driver and adds the environment lookup and path splitting there.
The paths are then passed down to cc1 with -I options (CPATH), added after the normal user-specified include dirs.
Language specific paths are passed via -LANG-isystem and the actual filtering is performed in the frontend.

I tried to match GCC's behavior as close as possible

Fixes PR8971.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@140341 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Driver/CC1Options.td
include/clang/Frontend/HeaderSearchOptions.h
lib/Driver/Tools.cpp
lib/Frontend/CompilerInvocation.cpp
lib/Frontend/InitHeaderSearch.cpp
test/Driver/cpath.c [new file with mode: 0644]