From 59fe528bf9e536dfc046c0d8b616bb89be8dd1d5 Mon Sep 17 00:00:00 2001 From: Demiu Date: Sat, 29 Jun 2019 17:08:32 +0200 Subject: [PATCH] Update SConstruct to gen debug symbols on windows Make SConstruct file from "GDNative C++ example" generate debug symbols on windows --- tutorials/plugins/gdnative/files/cpp_example/SConstruct | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tutorials/plugins/gdnative/files/cpp_example/SConstruct b/tutorials/plugins/gdnative/files/cpp_example/SConstruct index 30a1d7a21..26dc91c96 100644 --- a/tutorials/plugins/gdnative/files/cpp_example/SConstruct +++ b/tutorials/plugins/gdnative/files/cpp_example/SConstruct @@ -65,7 +65,8 @@ elif env['platform'] == "windows": env.Append(CCFLAGS = ['-DWIN32', '-D_WIN32', '-D_WINDOWS', '-W3', '-GR', '-D_CRT_SECURE_NO_WARNINGS']) if env['target'] in ('debug', 'd'): - env.Append(CCFLAGS = ['-EHsc', '-D_DEBUG', '-MDd']) + env.Append(CCFLAGS = ['-EHsc', '-D_DEBUG', '-MDd', '-ZI']) + env.Append(LINKFLAGS = ['-DEBUG']) else: env.Append(CCFLAGS = ['-O2', '-EHsc', '-DNDEBUG', '-MD'])