aboutsummaryrefslogtreecommitdiff
path: root/lib/Driver/InitHeaderSearch.cpp
AgeCommit message (Collapse)Author
2009-03-02Rename lib/Driver (etc) to lib/Frontend in prep for the *actual*Daniel Dunbar
driver taking lib/Driver. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65811 91177308-0d34-0410-b5e6-96231b3b80d8
2009-02-25add c++ search path for GCC 4.2, PR3668, patch by Pawel Worach!Chris Lattner
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65462 91177308-0d34-0410-b5e6-96231b3b80d8
2009-02-19fix a bug introduced in my previous patch: moving clang headers to theChris Lattner
"after" group instead of the system group makes it so #include <limits.h> picks up the *system* limits.h file before clang's. This causes a failure on linux and is definitely not what we want. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65026 91177308-0d34-0410-b5e6-96231b3b80d8
2009-02-19PR3614: "ignoring nonexistent directory" should print the -isysroot Chris Lattner
mapped path, not the requested path. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65009 91177308-0d34-0410-b5e6-96231b3b80d8
2009-02-18stop searching GCC install directories for standard C headers (butChris Lattner
keep searching for C++ headers when in C++ mode). In theory clang should be able to find all of its own headers now. If not, the CPATH or C_INCLUDE_PATH environment variables can be specified to add a include path. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64862 91177308-0d34-0410-b5e6-96231b3b80d8
2009-02-08use some references to simplify code.Chris Lattner
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64063 91177308-0d34-0410-b5e6-96231b3b80d8
2009-02-08Genericize the existing logic for removing duplicate header dirs to applyChris Lattner
the "system dirs win over user dirs" logic to framework and headermap search locations as well as normal directories. This means that clang t.m -F/System/Library/Frameworks will treat /System/Library/Frameworks as a system directory not a user directory. If you use -v, the difference is: Before: ignoring nonexistent directory "/usr/libdata/gcc41" ignoring duplicate framework "/System/Library/Frameworks" #include "..." search starts here: #include <...> search starts here: After: ignoring nonexistent directory "/usr/libdata/gcc41" ignoring duplicate directory "/System/Library/Frameworks" as it is a non-system directory that duplicates a system directory #include "..." search starts here: #include <...> search starts here: This fixes rdar://6566429. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64060 91177308-0d34-0410-b5e6-96231b3b80d8
2009-02-05Add Debian gcc 4.3 header search directories.Torok Edwin
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@63872 91177308-0d34-0410-b5e6-96231b3b80d8
2008-12-25Add Fedora 10 GCC paths.Zhongxing Xu
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@61429 91177308-0d34-0410-b5e6-96231b3b80d8
2008-12-07add missing gentoo c++ include pathsNuno Lopes
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@60655 91177308-0d34-0410-b5e6-96231b3b80d8
2008-10-27Rename Characteristic_t to CharacteristicKindChris Lattner
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@58224 91177308-0d34-0410-b5e6-96231b3b80d8
2008-10-04Bug fix, CPATH="" does not add '.' to search path.Daniel Dunbar
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@57072 91177308-0d34-0410-b5e6-96231b3b80d8
2008-09-26clean up a bunch of fixme's I added, by moving Chris Lattner
DirectoryLookup::DirType into SourceManager.h git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56692 91177308-0d34-0410-b5e6-96231b3b80d8
2008-09-26emulate a bit of GCC path lookup weirdness: if a system Chris Lattner
directory is shadowed by a user directory in the lookup path, ignore the user directory not the system one. Not doing this can affect file lookup and the "is a system header" bit on locations. For example: clang -v -I/usr/include inc.c -E | & grep /usr/inc now prints: # 1 "/usr/include/i386/_types.h" 1 3 4 # 37 "/usr/include/i386/_types.h" 3 4 # 70 "/usr/include/i386/_types.h" 3 4 instead of: # 1 "/usr/include/i386/_types.h" 1 # 37 "/usr/include/i386/_types.h" # 70 "/usr/include/i386/_types.h" This is part of rdar://6243860. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56669 91177308-0d34-0410-b5e6-96231b3b80d8
2008-09-05Set different header search paths for the Windows platform.Argyrios Kyrtzidis
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@55832 91177308-0d34-0410-b5e6-96231b3b80d8
2008-09-05Add header search paths for Mingw32 (GCC version 4).Argyrios Kyrtzidis
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@55830 91177308-0d34-0410-b5e6-96231b3b80d8
2008-08-23Add header search paths for dragonfly, patch by Sascha Wildner!Chris Lattner
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@55242 91177308-0d34-0410-b5e6-96231b3b80d8
2008-08-22Move most of HeaderSearch initialization to libDriver.Nico Weber
For example, adding the default system include paths in clients is now as simple as InitHeaderSearch init(headers); init.AddDefaultSystemIncludePaths(langopts); init.Realize(); git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@55174 91177308-0d34-0410-b5e6-96231b3b80d8