]> git.ipfire.org Git - thirdparty/gcc.git/commit
libstdc++: Allow lualatex to be used for Doxygen PDF
authorJonathan Wakely <jwakely@redhat.com>
Fri, 14 May 2021 13:19:50 +0000 (14:19 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Mon, 17 May 2021 11:13:41 +0000 (12:13 +0100)
commite3b6d3a887fc0df09ea742c9c5a5acbc27c11ea7
tree6d90a6933f3cc6f64cfbdb73e8641abf771804a4
parenta8e19fa4198ea2504c89d01741d11766e0e9e91b
libstdc++: Allow lualatex to be used for Doxygen PDF

This allows the Doxygen PDF to be built using lualatex instead of
pdflatex, which solves a problem with pdflatex running out of memory
sometimes. This is done by adding a --latex_cmd option to the
run_doxygen script, which then sets the specified command in the
generated user.cfg file used by Doxygen. The makefile is adjusted to
pass --latex_cmd=$(LATEX_CMD) to the script, so using running make with
LATEX_CMD=lualatex will override the default.

Additionally, this does some refactoring of the doc/Makefile.am rules
and the run_doxygen script.

libstdc++-v3/ChangeLog:

* doc/Makefile.am: Simplify doxygen recipes and use --latex_cmd.
* doc/Makefile.in: Regenerate.
* doc/doxygen/user.cfg.in (LATEX_CMD_NAME): Add placeholder
value.
* scripts/run_doxygen (print_usage): Always print to stdout and
do not exit.
(fail): New function for exiting on error.
(parse_options): Handle --latex_cmd. Do not treat --help the
same as errors. Simplify handling of required arguments.
libstdc++-v3/doc/Makefile.am
libstdc++-v3/doc/Makefile.in
libstdc++-v3/doc/doxygen/user.cfg.in
libstdc++-v3/scripts/run_doxygen