protonscr

[properties] section is deprecated in Meson 0.56

dxvkclosed build
doitsujin/dxvk#1877 · opened 2021-01-02 by Kron4ek · updated 2021-01-03 · 5 comments · github
KKron4ek 2021-01-02 github

c/cpp args and link args are now ignored if they are in the [properties] section, and Meson shows a warning. Commit bbba6a7.

It's probably a good idea now to use both sections simultaneously. New Meson version just ignores [properties] (yes, it shows the warning, but does not interrupt the build process). And older Meson versions will probably just ignore the new section, but i haven't tested this on older versions, so just an assumption.

[properties]
c_link_args = ['-static', '-static-libgcc']
cpp_link_args = ['-static', '-static-libgcc', '-static-libstdc++']
needs_exe_wrapper = true

[built-in options]
c_link_args = ['-static', '-static-libgcc']
cpp_link_args = ['-static', '-static-libgcc', '-static-libstdc++']
needs_exe_wrapper = true

Due to this, 32-bit build of DXVK 1.7.3 was compiled without -msse and -msse2 as it was built using Meson 0.56 (right?), at least i guess so given the upload date.

Ddoitsujin maintainer 2021-01-02 github

Yes, I'm aware of the problem. Feel free to file a PR; I'm still on vacation.

I'd also rather drop support for older meson versions than carry around untested crap since this has been around for months.

Ppchome 2021-01-02 github

Changed in 0.55.0 putting <lang>_args and <lang>_link_args in the
properties section has been deprecated, and should be put in the built-in
options section.

So not the whole properties section, according to the commit.

IiWeaker 2021-01-03 github

Breaks Proton Build.

ZZachBacon 2021-01-03 github

Breaks Proton Build.

Next step would be to update protons build procedure to use newer meson then.

Ppchome 2021-01-03 github

or, just put cross-files where Meson can find them and use ones for all mingw projects.

https://mesonbuild.com/Cross-compilation.html#cross-file-locations

...
These files can be loaded automatically without adding a path to the cross file. For example, if a ~/.local/share/meson/cross contains a file called x86-linux, then the following command would start a cross build using that cross files:
meson builddir/ --cross-file x86-linux

Nothing extracted yet.