protonscr

Error compiling DXVK-winelib with LTO:

dxvkclosed
doitsujin/dxvk#1473 · opened 2020-02-24 by ViNi-Arco · updated 2020-02-26 · 6 comments · github
VViNi-Arco 2020-02-24 github

Hello, good afternoon! I get this error when compiling dxvk-winelib with LTO:

oie_Szx65BzVOj4k

I put the flag like '-flto' in cpp_args and c_args.

Ppchome 2020-02-24 github

Some parts of Wine must be built with LTO, at least wine/libwinecrt0.a.

VViNi-Arco 2020-02-25 github

Thanks for the information pchome, I did a little research on 'wine / libwinecrt0.a' and got to that: https://github.com/InBetweenNames/gentooLTO/issues/328

From what I understand, it is possible to partially compile the DXVK with Winegcc / LTO, I may have misunderstood, but from what you said first, I need to compile Wine with LTO in order to compile the DXVK right?

Ppchome 2020-02-25 github

@ViNi-Arco

I need to compile Wine with LTO in order to compile the DXVK right?

Yes.

VViNi-Arco 2020-02-25 github

Thank @pchome, you have a good day.
I'll leave this issue open, for me to test and see what will happen, then I'll come back to tell you what happened :+1:.

Ddoitsujin maintainer 2020-02-26 github

We do not plan to support exotic configurations for winelib builds.

VViNi-Arco 2020-02-26 github

Hi Philip, I understand you, during my tests it was very complicated to make the LTO work in Wine, you need a patch, and it is very haky, and you can only compile the 32bit part of DXVK-winelib, on the other hand, DXVK with Mingw works perfectly with LTO, see the difference DXVK-Mingw with and without LTO, with LTO it is lighter:

oie_Q9Rm30sKqkId

In terms of performance there is an improvement, with LTO there is an increase of 5%~7% depending on the game in my tests, Have a good afternoon.

Nothing extracted yet.