aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/backend/vs2017backend.py
diff options
context:
space:
mode:
authorNiklas Claesson <niklas.claesson@cosylab.com>2017-10-16 11:37:17 +0200
committerJussi Pakkanen <jpakkane@gmail.com>2017-11-30 22:36:28 +0200
commite0274441fc49a39784767fea61992125b37c2349 (patch)
tree0fe66cdb4a21868f5157cd85f56cdabbdb30491c /mesonbuild/backend/vs2017backend.py
parent6f25e93b524ec827a55c13632c9ff23a20d8d3c2 (diff)
downloadmeson-e0274441fc49a39784767fea61992125b37c2349.zip
meson-e0274441fc49a39784767fea61992125b37c2349.tar.gz
meson-e0274441fc49a39784767fea61992125b37c2349.tar.bz2
VS: Add /DEBUG to linker to generate debug information
Diffstat (limited to 'mesonbuild/backend/vs2017backend.py')
-rw-r--r--mesonbuild/backend/vs2017backend.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/mesonbuild/backend/vs2017backend.py b/mesonbuild/backend/vs2017backend.py
index fe1d7c7..9098226 100644
--- a/mesonbuild/backend/vs2017backend.py
+++ b/mesonbuild/backend/vs2017backend.py
@@ -13,6 +13,7 @@
# limitations under the License.
import os
+import xml.etree.ElementTree as ET
from .vs2010backend import Vs2010Backend
@@ -27,3 +28,7 @@ class Vs2017Backend(Vs2010Backend):
sdk_version = os.environ.get('WindowsSDKVersion', None)
if sdk_version:
self.windows_target_platform_version = sdk_version.rstrip('\\')
+
+ def generate_debug_information(self, link):
+ # valid values for vs2017 is 'false', 'true', 'DebugFastLink', 'DebugFull'
+ ET.SubElement(link, 'GenerateDebugInformation').text = 'DebugFull'