[cfe-dev] RFC: A virtual file system for clang

Joerg Sonnenberger joerg at britannica.bec.de
Thu Feb 6 15:55:41 PST 2014


On Thu, Feb 06, 2014 at 03:04:06PM -0800, Ben Langmuir wrote:
> 1) Copy the files into a fake installation during build.  This is
> unsatisfying, as it requires tracking and copying files every time they
> are changed.  And diagnostics, debug info, etc. do not refer back to
> the original source file.

For NetBSD's GCC, I added the -iremap option to deal with __FILE__ at
least. This is useful for a number of applications that go beyond "map
prefix X to path Y". In pkgsrc, we filter the visiblity of headers to
avoid configure programs picking up dependencies that are not desirable.

Joerg



More information about the cfe-dev mailing list