[PATCH] Teach CC1 to dump module dependencies to a directory

Zachary Turner zturner at google.com
Thu Jun 19 21:41:56 PDT 2014


Thanks.  Also my patch up there was wrong anyway, so it all worked out in
the end :)


On Thu, Jun 19, 2014 at 8:38 PM, Justin Bogner <mail at justinbogner.com>
wrote:

> Justin Bogner <mail at justinbogner.com> writes:
> > Zachary Turner <zturner at google.com> writes:
> >> This generates some crashes when running Windows tests.  In particular,
> this
> >> asserts is being hit:
> >>
> >>   assert(sys::path::is_absolute(VirtualPath) && "virtual path not
> absolute");
> >>
> >> inside the function void YAMLVFSWriter::addFileMapping(StringRef
> VirtualPath,
> >> StringRef RealPath)
> >>
> >> Inspecting VirtualPath in a debugger shows that the value is:
> >>
> >>
> \\src\\llvm\\tools\\clang\\test\\Modules\\Inputs\\Module.framework\\Frameworks
> >> \\SubFramework.framework\\Headers\\SubFramework.h
> >>
> >> The path qualified with drive letter on my machine that this resolves
> to is
> >> the aforementioned path prefixed with a D:
> >>
> >> So this should refer to a root path, but either way I'll leave it to
> you to
> >> decide whether the fix is to append the drive letter, or maybe the bug
> is in
> >> the is_absolute() function.
> >
> > The copyToRoot function is wrong here - It takes a shortcut in working
> > out an absolute path that isn't valid on windows. I'll come up with a
> > fix in a couple of hours.
>
> Should be fixed in r211338.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140619/a430a730/attachment.html>


More information about the cfe-commits mailing list