Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Move AVX / SSE messages to function PrintVersionInfo (crash fix)
This information is not needed for normal runs, so it is sufficient to show it on request (like versions and OpenCL information). This also fixes a crash caused by undefined order of global constructors: When the global variable SIMDDetect::detector is initialized before the global variable debug_file, the first tprintf call in simddetect.cpp crashes because of a NULL pointer in debug_file. This was only seen when running with a shared library (libtesseract.so). Signed-off-by: Stefan Weil <sw@weilnetz.de>
- Loading branch information