<div dir="ltr">(oops, forgot to reply-all)<br><br><div class="gmail_quote">---------- Forwarded message ----------<br>From: <b class="gmail_sendername">David Blaikie</b> <span dir="ltr"><<a href="mailto:dblaikie@gmail.com">dblaikie@gmail.com</a>></span><br>Date: Fri, Jan 8, 2016 at 10:51 AM<br>Subject: Re: r256287 - Document that we recommend to turn off -gmodules when building a static<br>To: Adrian Prantl <<a href="mailto:aprantl@apple.com">aprantl@apple.com</a>><br><br><br><div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote"><span class="">On Fri, Jan 8, 2016 at 8:34 AM, Adrian Prantl <span dir="ltr"><<a href="mailto:aprantl@apple.com" target="_blank">aprantl@apple.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><br><div><span><blockquote type="cite"><div>On Jan 7, 2016, at 6:54 PM, David Blaikie <<a href="mailto:dblaikie@gmail.com" target="_blank">dblaikie@gmail.com</a>> wrote:</div><br><div><div dir="ltr">Presumably this only applies when using implicit modules builds, not when using explicit modules builds. (though I'm not sure what the current behavior of -gmodules is with explicit modules, maybe it's untested/broken/etc anyway)</div></div></blockquote><div><br></div></span><div>Why would explicit modules be any different? Unless you distribute the modules together with the static library (and ensure they end up in the same location on the other machine) you would still run into the problem, wouldn’t you?</div></div></div></blockquote><div><br></div></span><div>Right - though it'd be a bit more obvious/easy (I would imagine/assume) to find and move that build product too, since it'd be in your build tree rather than an OS-wide cache somewhere else.</div><div><div class="h5"><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div><span><font color="#888888"><div><br></div><div>-- adrian</div></font></span><div><div><br><blockquote type="cite"><div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Dec 22, 2015 at 2:37 PM, Adrian Prantl via cfe-commits <span dir="ltr"><<a href="mailto:cfe-commits@lists.llvm.org" target="_blank">cfe-commits@lists.llvm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Author: adrian<br>
Date: Tue Dec 22 16:37:22 2015<br>
New Revision: 256287<br>
<br>
URL: <a href="http://llvm.org/viewvc/llvm-project?rev=256287&view=rev" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project?rev=256287&view=rev</a><br>
Log:<br>
Document that we recommend to turn off -gmodules when building a static<br>
library for distribution to other machines on the clang man page.<br>
<br>
Modified:<br>
cfe/trunk/docs/CommandGuide/clang.rst<br>
<br>
Modified: cfe/trunk/docs/CommandGuide/clang.rst<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/cfe/trunk/docs/CommandGuide/clang.rst?rev=256287&r1=256286&r2=256287&view=diff" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project/cfe/trunk/docs/CommandGuide/clang.rst?rev=256287&r1=256286&r2=256287&view=diff</a><br>
==============================================================================<br>
--- cfe/trunk/docs/CommandGuide/clang.rst (original)<br>
+++ cfe/trunk/docs/CommandGuide/clang.rst Tue Dec 22 16:37:22 2015<br>
@@ -262,7 +262,12 @@ Code Generation Options<br>
Generate debug information that contains external references to<br>
types defined in clang modules or precompiled headers instead of<br>
emitting redundant debug type information into every object file.<br>
- This option implies `-fmodule-format=obj`.<br>
+ This option implies :option:`-fmodule-format=obj`.<br>
+<br>
+ This option should not be used when building static libraries for<br>
+ distribution to other machines because the debug info will contain<br>
+ references to the module cache on the machine the object files in<br>
+ the library were built on.<br>
<br>
.. option:: -fstandalone-debug -fno-standalone-debug<br>
<br>
<br>
<br>
_______________________________________________<br>
cfe-commits mailing list<br>
<a href="mailto:cfe-commits@lists.llvm.org" target="_blank">cfe-commits@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits</a><br>
</blockquote></div><br></div>
</div></blockquote></div></div></div><br></div></blockquote></div></div></div><br></div></div>
</div><br></div>