g-ir-scanner fails to find `foo++` library with cygwin
I noticed this in a new Meson unit test: https://github.com/mesonbuild/meson/pull/12176.
ERROR: can't resolve libraries to shared libraries: foo++
I think the problem comes either from https://gitlab.gnome.org/GNOME/gobject-introspection/-/blob/main/giscanner/ccompiler.py#L391 or https://gitlab.gnome.org/GNOME/gobject-introspection/-/blob/main/giscanner/shlibs.py#L48 where they fail to take into account cygfoo++.dll
naming. Both places print the same error message so I'm not sure which one it comes from.
Note that the same unit test pass on other platforms, so it's unlikely the ++
in the name that causes the problem.
Edited by Xavier Claessens