Indeed, it would seem so. I have a simple patch I was just about to
send to the list. Maybe you've already tackled it, but in case not,
here you go. :)
On Sat, 2007-12-08 at 18:03 +1300, Keith Bauer wrote:
> > I'm also rather tempted to go fix whatever is causing that extra // at
> > the start of the file path in the errors. :)
>
> Pretty sure it's my -isysroot support that's doing that.
>
> -Keith
Index: Driver/clang.cpp
===================================================================
--- Driver/clang.cpp (revision 44696)
+++ Driver/clang.cpp (working copy)
@@ -623,9 +623,12 @@
bool isCXXAware, bool isUserSupplied,
bool isFramework, FileManager &FM) {
const DirectoryEntry *DE;
- if (Group == System)
- DE = FM.getDirectory(isysroot + "/" + Path);
- else
+ if (Group == System) {
+ if (isysroot == "/")
+ DE = FM.getDirectory(Path);
+ else
+ DE = FM.getDirectory(isysroot + "/" + Path);
+ } else
DE = FM.getDirectory(Path);
if (DE == 0) {
_______________________________________________
cfe-dev mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev