]> granicus.if.org Git - clang/commitdiff
add a portability fixme.
authorChris Lattner <sabre@nondot.org>
Mon, 17 Dec 2007 06:51:34 +0000 (06:51 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 17 Dec 2007 06:51:34 +0000 (06:51 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@45091 91177308-0d34-0410-b5e6-96231b3b80d8

Driver/clang.cpp

index 5e102b9edf046b694ae80eea37343eee266a0200..28659dd84a0bb218b392e17a3eb9411af309c3c8 100644 (file)
@@ -622,6 +622,8 @@ static void AddPath(const std::string &Path, IncludeDirGroup Group,
   
   // Handle isysroot.
   if (Group == System) {
+    // FIXME: Portability.  This should be a sys::Path interface, this doesn't
+    // 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 /.