unit tests: Teach detect_prebuild_env about Cygwin

This is enough to fix things.

Note that build_shared_lib doesn't use the implib name for mingw or cygwin
gcc, only msvc, so I'm not quite sure how this is working, I guess we are
using the gcc facility to link directly with a dll...
This commit is contained in:
Jon Turney 2017-11-12 14:02:01 +00:00 committed by Nirbheek Chauhan
parent 9da031c04c
commit c4069a95c2
1 changed files with 3 additions and 0 deletions

View File

@ -1348,6 +1348,9 @@ int main(int argc, char **argv) {
if mesonbuild.mesonlib.is_windows():
object_suffix = 'obj'
shared_suffix = 'dll'
elif mesonbuild.mesonlib.is_cygwin():
object_suffix = 'o'
shared_suffix = 'dll'
elif mesonbuild.mesonlib.is_osx():
object_suffix = 'o'
shared_suffix = 'dylib'