aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Kozlyuk <dmitry.kozliuk@gmail.com>2020-01-18 06:09:23 +0300
committerNirbheek Chauhan <nirbheek.chauhan@gmail.com>2020-02-15 23:53:47 +0530
commit8b60fb709c4aa6b9b00edd17614ca8ebef1c063d (patch)
tree5976b9e14b25bcd5cead3e064e7f24e546c22ed7
parent83960ea0508d993497cfe43188afb2884c8bc21e (diff)
downloadmeson-8b60fb709c4aa6b9b00edd17614ca8ebef1c063d.zip
meson-8b60fb709c4aa6b9b00edd17614ca8ebef1c063d.tar.gz
meson-8b60fb709c4aa6b9b00edd17614ca8ebef1c063d.tar.bz2
msvc: add prefix to build type arguments
-rw-r--r--mesonbuild/linkers.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/mesonbuild/linkers.py b/mesonbuild/linkers.py
index 9781813..dbd90b2 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