diff options
author | Dylan Baker <dylan@pnwbakers.com> | 2020-03-09 09:40:56 -0700 |
---|---|---|
committer | Dylan Baker <dylan@pnwbakers.com> | 2020-03-09 16:55:08 -0700 |
commit | 06bbf6cf9353f6b336b6ddaa76c235af7a6092fb (patch) | |
tree | 6fb347f56831788619d47d6358b014fb093ddc90 /mesonbuild/linkers.py | |
parent | c9ecfc84ffc685ff29ed488d15419401c2d22cb8 (diff) | |
download | meson-06bbf6cf9353f6b336b6ddaa76c235af7a6092fb.zip meson-06bbf6cf9353f6b336b6ddaa76c235af7a6092fb.tar.gz meson-06bbf6cf9353f6b336b6ddaa76c235af7a6092fb.tar.bz2 |
linkers: Move import_library_args to from VS compiler to linker
This is the argument to name the implib when using the Visual Studio
Linker. This is needed by LDC and DMD when using link.exe or
lld-link.exe on windows, and is really a linker argument not a compiler
argument.
Diffstat (limited to 'mesonbuild/linkers.py')
-rw-r--r-- | mesonbuild/linkers.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/mesonbuild/linkers.py b/mesonbuild/linkers.py index 489525b..d6ea0c9 100644 --- a/mesonbuild/linkers.py +++ b/mesonbuild/linkers.py @@ -872,6 +872,10 @@ class VisualStudioLikeLinkerMixin: is_shared_module: bool) -> T.List[str]: return [] + def import_library_args(self, implibname: str) -> T.List[str]: + """The command to generate the import library.""" + return self._apply_prefix(['/IMPLIB:' + implibname]) + class MSVCDynamicLinker(VisualStudioLikeLinkerMixin, DynamicLinker): |