bruno added a comment.


> I am wondering if there is clearer name than `-gen-reproducer`.

Probably, I'm open to suggestions :-)

> IIUC, the goal is to extract all environment (system) dependent pieces, 
> copying them to a folder where the compiler can be chroot-ed (via 
> `-isysroot`).

It doesn't necessarily needs a `-isysroot` to work, only if the original 
invocation used it, then we need to use it as well to ask the VFS 
(transparently) for the right path locations.

> In some sense, what we do seems close to what `-header-include-file 
> list_of_includes.txt` does and additionally copying the contents of the 
> list_of_includes.txt (and possibly mounting a vfs overlay).

`-header-include-file` does something similar but more limited, I added some 
specific callbacks for the module collector back in the day that it might not 
collect yet though, for instance, it collects module.modulemap's and will soon 
collect header maps and some other stuff.

It also has some special handling for symlinks; it doesn't copy both files, but 
generate two yaml entries that point to the same "physical" location.


https://reviews.llvm.org/D27604



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to