diff options
author | Peter Harris <pharris@opentext.com> | 2020-05-08 19:06:05 -0400 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2020-10-14 19:35:28 +0300 |
commit | 8b8a610ea4ed632759b831606723d1cafa8920d7 (patch) | |
tree | f17fdb6172233d836fc3df17ff87292516f23dc6 /mesonbuild/backend | |
parent | e36f713a7f5cc10d3f8adc7ae1c73ef6cce51082 (diff) | |
download | meson-8b8a610ea4ed632759b831606723d1cafa8920d7.zip meson-8b8a610ea4ed632759b831606723d1cafa8920d7.tar.gz meson-8b8a610ea4ed632759b831606723d1cafa8920d7.tar.bz2 |
vs: add static_from_buildtype to b_vscrt
Diffstat (limited to 'mesonbuild/backend')
-rw-r--r-- | mesonbuild/backend/vs2010backend.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/mesonbuild/backend/vs2010backend.py b/mesonbuild/backend/vs2010backend.py index 08360d3..6edf36a 100644 --- a/mesonbuild/backend/vs2010backend.py +++ b/mesonbuild/backend/vs2010backend.py @@ -838,6 +838,13 @@ class Vs2010Backend(backends.Backend): else: ET.SubElement(type_config, 'UseDebugLibraries').text = 'false' ET.SubElement(clconf, 'RuntimeLibrary').text = 'MultiThreadedDLL' + elif vscrt_type.value == 'static_from_buildtype': + if self.buildtype == 'debug': + ET.SubElement(type_config, 'UseDebugLibraries').text = 'true' + ET.SubElement(clconf, 'RuntimeLibrary').text = 'MultiThreadedDebug' + else: + ET.SubElement(type_config, 'UseDebugLibraries').text = 'false' + ET.SubElement(clconf, 'RuntimeLibrary').text = 'MultiThreaded' elif vscrt_type.value == 'mdd': ET.SubElement(type_config, 'UseDebugLibraries').text = 'true' ET.SubElement(clconf, 'RuntimeLibrary').text = 'MultiThreadedDebugDLL' |