<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Jan 7, 2016, at 6:54 PM, David Blaikie <<a href="mailto:dblaikie@gmail.com" class="">dblaikie@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">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 class=""></div><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><br class=""></div><div>-- adrian</div><br class=""><blockquote type="cite" class=""><div class=""><div class="gmail_extra"><br class=""><div class="gmail_quote">On Tue, Dec 22, 2015 at 2:37 PM, Adrian Prantl via cfe-commits <span dir="ltr" class=""><<a href="mailto:cfe-commits@lists.llvm.org" target="_blank" class="">cfe-commits@lists.llvm.org</a>></span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Author: adrian<br class="">
Date: Tue Dec 22 16:37:22 2015<br class="">
New Revision: 256287<br class="">
<br class="">
URL: <a href="http://llvm.org/viewvc/llvm-project?rev=256287&view=rev" rel="noreferrer" target="_blank" class="">http://llvm.org/viewvc/llvm-project?rev=256287&view=rev</a><br class="">
Log:<br class="">
Document that we recommend to turn off -gmodules when building a static<br class="">
library for distribution to other machines on the clang man page.<br class="">
<br class="">
Modified:<br class="">
cfe/trunk/docs/CommandGuide/clang.rst<br class="">
<br class="">
Modified: cfe/trunk/docs/CommandGuide/clang.rst<br class="">
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" class="">http://llvm.org/viewvc/llvm-project/cfe/trunk/docs/CommandGuide/clang.rst?rev=256287&r1=256286&r2=256287&view=diff</a><br class="">
==============================================================================<br class="">
--- cfe/trunk/docs/CommandGuide/clang.rst (original)<br class="">
+++ cfe/trunk/docs/CommandGuide/clang.rst Tue Dec 22 16:37:22 2015<br class="">
@@ -262,7 +262,12 @@ Code Generation Options<br class="">
Generate debug information that contains external references to<br class="">
types defined in clang modules or precompiled headers instead of<br class="">
emitting redundant debug type information into every object file.<br class="">
- This option implies `-fmodule-format=obj`.<br class="">
+ This option implies :option:`-fmodule-format=obj`.<br class="">
+<br class="">
+ This option should not be used when building static libraries for<br class="">
+ distribution to other machines because the debug info will contain<br class="">
+ references to the module cache on the machine the object files in<br class="">
+ the library were built on.<br class="">
<br class="">
.. option:: -fstandalone-debug -fno-standalone-debug<br class="">
<br class="">
<br class="">
<br class="">
_______________________________________________<br class="">
cfe-commits mailing list<br class="">
<a href="mailto:cfe-commits@lists.llvm.org" class="">cfe-commits@lists.llvm.org</a><br class="">
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits" rel="noreferrer" target="_blank" class="">http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits</a><br class="">
</blockquote></div><br class=""></div>
</div></blockquote></div><br class=""></body></html>