From 1d3cce3e1cb9dafe16d77f3b71b7add46a2051c2 Mon Sep 17 00:00:00 2001 From: Ted Kremenek Date: Thu, 22 May 2008 15:26:22 +0000 Subject: [PATCH] Update driver include paths to work on darwin10. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@51431 91177308-0d34-0410-b5e6-96231b3b80d8 --- Driver/clang.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Driver/clang.cpp b/Driver/clang.cpp index 1071659016..21f1eb4f68 100644 --- a/Driver/clang.cpp +++ b/Driver/clang.cpp @@ -951,6 +951,12 @@ static void InitializeIncludePaths(const char *Argv0, HeaderSearch &Headers, // FIXME: get these from the target? if (!nostdinc) { if (Lang.CPlusPlus) { + AddPath("/usr/include/c++/4.2.1", System, true, false, false, Headers); + AddPath("/usr/include/c++/4.2.1/i686-apple-darwin10", System, true, false, + false, Headers); + AddPath("/usr/include/c++/4.2.1/backward", System, true, false, false, + Headers); + AddPath("/usr/include/c++/4.0.0", System, true, false, false, Headers); AddPath("/usr/include/c++/4.0.0/i686-apple-darwin8", System, true, false, false, Headers); @@ -973,6 +979,12 @@ static void InitializeIncludePaths(const char *Argv0, HeaderSearch &Headers, } AddPath("/usr/local/include", System, false, false, false, Headers); + + AddPath("/usr/lib/gcc/i686-apple-darwin10/4.2.1/include", System, + false, false, false, Headers); + AddPath("/usr/lib/gcc/powerpc-apple-darwin10/4.2.1/include", + System, false, false, false, Headers); + // leopard AddPath("/usr/lib/gcc/i686-apple-darwin9/4.0.1/include", System, false, false, false, Headers);