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...
pull/2611/head
Jon Turney 7 years ago committed by Nirbheek Chauhan
parent 9da031c04c
commit c4069a95c2
  1. 3
      run_unittests.py

@ -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'

Loading…
Cancel
Save