From 1679b83fc60130ce4633e99f37bb3226f0ec86d2 Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Mon, 5 Jul 2021 07:42:34 +0200 Subject: libghdl: also use dll extension on msys --- pyGHDL/libghdl/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'pyGHDL') diff --git a/pyGHDL/libghdl/__init__.py b/pyGHDL/libghdl/__init__.py index 8c9d132e9..612737824 100644 --- a/pyGHDL/libghdl/__init__.py +++ b/pyGHDL/libghdl/__init__.py @@ -64,7 +64,8 @@ class LibGHDLException(GHDLBaseException): def _get_libghdl_name() -> Path: """Get the name of the libghdl library (with version and extension).""" ver = __version__.replace("-", "_").replace(".", "_") - ext = {"win32": "dll", "cygwin": "dll", "darwin": "dylib"}.get(sys_platform, "so") + ext = {"win32": "dll", "cygwin": "dll", "msys": "dll", + "darwin": "dylib"}.get(sys_platform, "so") return Path("libghdl-{version}.{ext}".format(version=ver, ext=ext)) -- cgit v1.2.3