diff --git a/testsuite/driver/testlib.py b/testsuite/driver/testlib.py index 97e51efa3777f0bef2d361536970ab4f8acdd654..00790289ad307eb7e524aa4d824e65454f010482 100644 --- a/testsuite/driver/testlib.py +++ b/testsuite/driver/testlib.py @@ -730,10 +730,12 @@ def _find_so(lib, directory, in_place): # produce the suffix for the CI operating system suffix = "so" - if config.os == "mingw32": - suffix = "dll" - elif config.os == "darwin": - suffix = "dylib" + # config.os is host os + if not config.cross: + if config.os == "mingw32": + suffix = "dll" + elif config.os == "darwin": + suffix = "dylib" # Most artfacts are of the form foo-inplace, except for the rts. if in_place: