Browse Source

Update SConstruct to gen debug symbols on windows

Make SConstruct file from "GDNative C++ example" generate debug symbols on windows
Demiu 6 years ago
parent
commit
59fe528bf9
1 changed files with 2 additions and 1 deletions
  1. 2 1
      tutorials/plugins/gdnative/files/cpp_example/SConstruct

+ 2 - 1
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'])
     env.Append(CCFLAGS = ['-DWIN32', '-D_WIN32', '-D_WINDOWS', '-W3', '-GR', '-D_CRT_SECURE_NO_WARNINGS'])
     if env['target'] in ('debug', 'd'):
     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:
     else:
         env.Append(CCFLAGS = ['-O2', '-EHsc', '-DNDEBUG', '-MD'])
         env.Append(CCFLAGS = ['-O2', '-EHsc', '-DNDEBUG', '-MD'])