diff --git a/docs/CommandGuide/llvmc.pod b/docs/CommandGuide/llvmc.pod index 97445edf412..86a721a6c43 100644 --- a/docs/CommandGuide/llvmc.pod +++ b/docs/CommandGuide/llvmc.pod @@ -71,6 +71,11 @@ write files into the directory specified with the I<-o> option. The I<--save-temps=cwd> and I<--save-temps> switches are both synonyms for the default behaviour. +=item B<--temp-dir> I + +Write temporary files to the specified directory. This option overrides +I<--save-temps>. + =item B<--help> Print a summary of command-line options and exit. diff --git a/tools/llvmc/doc/LLVMC-Reference.rst b/tools/llvmc/doc/LLVMC-Reference.rst index 4653e0e9d8f..a5c6fc9f061 100644 --- a/tools/llvmc/doc/LLVMC-Reference.rst +++ b/tools/llvmc/doc/LLVMC-Reference.rst @@ -97,6 +97,9 @@ configuration libraries: the ``-o`` option. The ``--save-temps=cwd`` and ``--save-temps`` switches are both synonyms for the default behaviour. +* ``--temp-dir`` - Write temporary files to the specified directory. This option + overrides ``--save-temps``. + * ``--check-graph`` - Check the compilation for common errors like mismatched output/input language names, multiple default edges and cycles. Because of plugins, these checks can't be performed at compile-time. Exit with code zero