]> granicus.if.org Git - clang/commitdiff
fix an interaction between -isystem . and isysroot.
authorChris Lattner <sabre@nondot.org>
Tue, 26 Feb 2008 23:46:22 +0000 (23:46 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 26 Feb 2008 23:46:22 +0000 (23:46 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@47646 91177308-0d34-0410-b5e6-96231b3b80d8

Driver/clang.cpp

index 3234f8cf6210a4b2c33f8b5137e543054c358fe0..48bcbbdef8bbe9a441c2be8584502f79dc4a99dc 100644 (file)
@@ -698,8 +698,6 @@ static void AddPath(const std::string &Path, IncludeDirGroup Group,
     // handle things like C:\ right, nor win32 \\network\device\blah.
     if (isysroot.size() != 1 || isysroot[0] != '/') // Add isysroot if present.
       MappedPath.append(isysroot.begin(), isysroot.end());
-    if (Path[0] != '/')  // If in the system group, add a /.
-      MappedPath.push_back('/');
   }
   
   MappedPath.append(Path.begin(), Path.end());