From 8b60fb709c4aa6b9b00edd17614ca8ebef1c063d Mon Sep 17 00:00:00 2001 From: Dmitry Kozlyuk Date: Sat, 18 Jan 2020 06:09:23 +0300 Subject: msvc: add prefix to build type arguments --- mesonbuild/linkers.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mesonbuild/linkers.py b/mesonbuild/linkers.py index 9781813ae..dbd90b2c0 100644 --- a/mesonbuild/linkers.py +++ b/mesonbuild/linkers.py @@ -787,6 +787,9 @@ class VisualStudioLikeLinkerMixin: super().__init__(*args, **kwargs) self.machine = machine + def get_buildtype_args(self, buildtype: str) -> T.List[str]: + return mesonlib.listify([self._apply_prefix(a) for a in self._BUILDTYPE_ARGS[buildtype]]) + def invoked_by_compiler(self) -> bool: return not self.direct -- cgit v1.2.3