Enable whole-program optimization when compiling eSpeak-NG #17623
Labels
component/speech
p5
https://github.com/nvaccess/nvda/blob/master/projectDocs/issues/triage.md#priority
triaged
Has been triaged, issue is waiting for implementation.
Milestone
Is your feature request related to a problem? Please describe.
As for now, whole-program optimization for eSpeak-NG is intentionally turned off.
I tried the klatt4 variant, but couldn't notice the difference between enabling and disabling the whole-program optimization. In fact, the waveforms generated are exactly the same.
If enabling whole-program optimization produces a different result, it should be a bug in the compiler/linker.
Maybe newer versions of eSpeak or newer versions of the MSVC compiler have fixed the bug. Or maybe I tested in a wrong way.
Describe the solution you'd like
Enable whole-program optimization by removing the
/GL-
option.This can make the eSpeak DLL more efficient and smaller, from 637 KiB to 624 KiB.
It can also solve the problem of using a dynamically linked version of Sonic without
__declspec(dllimport)
in the header, because the optimization will be performed by the linker, if whole-program optimization is enabled.Describe alternatives you've considered
Additional context
The text was updated successfully, but these errors were encountered: