tesseract-ocr / tesseract

Tesseract Open Source OCR Engine (main repository)
https://tesseract-ocr.github.io/
Apache License 2.0
59.53k stars 9.23k forks source link

Use AM_CPPFLAGS also for compilation of all sources #4244

Closed stweil closed 1 month ago

stweil commented 1 month ago

It was not used for all sources before. Therefore some parts of the code (especially the code for training) used different compiler options. For example NDEBUG was not defined, and so the training code was built with debug assertions (resulting in potentially slower execution).

stweil commented 1 month ago

This change also reduces the size of the generated binaries.