Skip to content

Commit

Permalink
Merge pull request #102 from lyuma/debug_windows
Browse files Browse the repository at this point in the history
Add debug symbols to windows debug target.
  • Loading branch information
BastiaanOlij authored Aug 17, 2020
2 parents ee25549 + 98d94d7 commit 16bd918
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion SConstruct
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ if 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', '-FS'])
env.Append(LINKFLAGS = ['-DEBUG:FULL'])
else:
env.Append(CCFLAGS = ['-O2', '-EHsc', '-DNDEBUG', '-MD'])
# untested
Expand Down

0 comments on commit 16bd918

Please sign in to comment.