Document that we recommend to turn off -gmodules when building a static

library for distribution to other machines on the clang man page.

llvm-svn: 256287
This commit is contained in:
Adrian Prantl 2015-12-22 22:37:22 +00:00
parent 54bfae8f52
commit a7f56ab893
1 changed files with 6 additions and 1 deletions

View File

@ -262,7 +262,12 @@ Code Generation Options
Generate debug information that contains external references to
types defined in clang modules or precompiled headers instead of
emitting redundant debug type information into every object file.
This option implies `-fmodule-format=obj`.
This option implies :option:`-fmodule-format=obj`.
This option should not be used when building static libraries for
distribution to other machines because the debug info will contain
references to the module cache on the machine the object files in
the library were built on.
.. option:: -fstandalone-debug -fno-standalone-debug