[cfe-dev] Relocatable modules?

Andrew Gallagher via cfe-dev cfe-dev at lists.llvm.org
Thu Aug 9 16:43:28 PDT 2018


I was looking into getting a build system to cache/share module files (i.e.
*.pcm files) between different users to speed up builds.  One problem is
that it appears clang is embedding absolute paths into the module file,
which causes issues when users build from different locations (e.g. their
home directories).  From the output of `clang -fmodule-file-info ...` it
looks like this absolute path is the location of the various
`module.modulemap` files the build uses.  Anyone know of a way to get clang
to these absolute path (e.g. using relative paths instead, or something
similar to `$ORIGIN`)?

Thanks!
Andrew
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20180809/95ff16f9/attachment.html>


More information about the cfe-dev mailing list