diff options
author | Cerbero <cerbero@gstreamer.freedesktop.org> | 2020-04-04 00:41:17 +0530 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2020-04-05 13:39:41 +0300 |
commit | df5113252b1ac2f10423aa7b9d1746d4071f38a2 (patch) | |
tree | b6a164ca137b344072a2cd6ef28c5fde864a5eed /mesonbuild/dependencies/ui.py | |
parent | 0e50974f803f62910c5f92765d534aa5f73e7f8e (diff) | |
download | meson-df5113252b1ac2f10423aa7b9d1746d4071f38a2.zip meson-df5113252b1ac2f10423aa7b9d1746d4071f38a2.tar.gz meson-df5113252b1ac2f10423aa7b9d1746d4071f38a2.tar.bz2 |
qt dependency: Pick debug libraries based on b_vscrt
`b_vscrt` has existed forever, and is the canonical source for
which CRT to link to, and hence whether to use the debug libraries
or not.
Diffstat (limited to 'mesonbuild/dependencies/ui.py')
-rw-r--r-- | mesonbuild/dependencies/ui.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/mesonbuild/dependencies/ui.py b/mesonbuild/dependencies/ui.py index 1cadeb0..4cec814 100644 --- a/mesonbuild/dependencies/ui.py +++ b/mesonbuild/dependencies/ui.py @@ -376,7 +376,12 @@ class QtBaseDependency(ExternalDependency): self.bindir = self.get_qmake_host_bins(qvars) self.is_found = True + # Use the buildtype by default, but look at the b_vscrt option if the + # compiler supports it. is_debug = self.env.coredata.get_builtin_option('buildtype') == 'debug' + if 'b_vscrt' in self.env.coredata.base_options: + if self.env.coredata.base_options['b_vscrt'].value in ('mdd', 'mtd'): + is_debug = True modules_lib_suffix = self._get_modules_lib_suffix(is_debug) for module in mods: |