-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable -flto for mingw #2731
Comments
This should really work, and I think the comment is an old left-over. |
I have definitely tested it and it does work. I can launch the executable just fine and it's a little smaller than without -flto. |
OK, I've removed the comment as part of #2695 |
Shouldn't the actual code be adjusted as well? Because currently when using |
Ah sorry, I understood that the code worked as if. Can you show the changes you made to the Makefile? ( |
Had actually just hacked that in before, but I think this should work: edit: looking at it again, i'm not even sure the ifeq is even still necessary now, unless there is a 4th (or more?) supported options for |
@Morilli Why doesn't it works on my Mingw64 updated latest ? |
Uhm I cannot tell why it doesn't work for you, both build and profile-build work with |
running abruptly breaks, only build succeeds |
I noticed that the makefile contains this suspicious line:
Link Time Optimization, it works since gcc 4.5 but not on mingw under Windows.
. As I have compiled numerous software with link-time optimization enabled, I can assure it does work on mingw. I have found this previous issue #392, which is almost 5 years old by now and must be outdated. I'd like for someone to confirm that -flto does work on windows with mingw so it can be enabled in the makefile.The text was updated successfully, but these errors were encountered: