aboutsummaryrefslogtreecommitdiff
path: root/tools/clang-cc
diff options
context:
space:
mode:
authorMike Stump <mrs@apple.com>2009-10-08 23:29:47 +0000
committerMike Stump <mrs@apple.com>2009-10-08 23:29:47 +0000
commit43d8176d2e8e304b2d419fb0fe139cc07af80dea (patch)
tree3f7b30a5b649d744f2efc93c01cec29407e2fdad /tools/clang-cc
parent76bee4b756badefda61ce867c757cc31b7afa12f (diff)
Set up include paths for VC++ and Cygwin headers, along with the
existing MinGW headers, plus the newer 4.4.0 version. Patch by John Thompson. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@83594 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/clang-cc')
-rw-r--r--tools/clang-cc/clang-cc.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/tools/clang-cc/clang-cc.cpp b/tools/clang-cc/clang-cc.cpp
index 19ea039835..0ad7efbc48 100644
--- a/tools/clang-cc/clang-cc.cpp
+++ b/tools/clang-cc/clang-cc.cpp
@@ -1166,7 +1166,8 @@ void AddClangIncludePaths(const char *Argv0, InitHeaderSearch *Init) {
/// InitializeIncludePaths - Process the -I options and set them in the
/// HeaderSearch object.
void InitializeIncludePaths(const char *Argv0, HeaderSearch &Headers,
- FileManager &FM, const LangOptions &Lang) {
+ FileManager &FM, const LangOptions &Lang,
+ llvm::Triple &triple) {
InitHeaderSearch Init(Headers, Verbose, isysroot);
// Handle -I... and -F... options, walking the lists in parallel.
@@ -1245,7 +1246,7 @@ void InitializeIncludePaths(const char *Argv0, HeaderSearch &Headers,
AddClangIncludePaths(Argv0, &Init);
if (!nostdinc)
- Init.AddDefaultSystemIncludePaths(Lang);
+ Init.AddDefaultSystemIncludePaths(Lang, triple);
// Now that we have collected all of the include paths, merge them all
// together and tell the preprocessor about them.
@@ -2410,7 +2411,7 @@ int main(int argc, char **argv) {
HeaderSearch HeaderInfo(FileMgr);
- InitializeIncludePaths(argv[0], HeaderInfo, FileMgr, LangInfo);
+ InitializeIncludePaths(argv[0], HeaderInfo, FileMgr, LangInfo, Triple);
// Set up the preprocessor with these options.
DriverPreprocessorFactory PPFactory(Diags, LangInfo, *Target,