[PATCH] D27604: [Driver] Add compiler option to generate a reproducer
Bruno Cardoso Lopes via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Dec 9 16:57:01 PST 2016
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
More information about the cfe-commits
mailing list