Skip to content

Commit 05ea6ee

Browse files
committed
Add release_debug target on windows
Note: other platforms already implement release_debug by providing debug symbols with -g on release builds.
1 parent 98d94d7 commit 05ea6ee

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

SConstruct

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ opts = Variables(customs, ARGUMENTS)
99
env = DefaultEnvironment()
1010

1111
# Define our parameters
12-
opts.Add(EnumVariable('target', "Compilation target", 'release', ['d', 'debug', 'r', 'release']))
12+
opts.Add(EnumVariable('target', "Compilation target", 'release', ['d', 'debug', 'r', 'release', 'release_debug']))
1313
opts.Add(EnumVariable('platform', "Compilation platform", 'windows', ['windows', 'x11', 'linux', 'osx']))
1414
opts.AddVariables(
1515
PathVariable('openvr_path', 'The path where the OpenVR repo is located.', 'openvr/'),
@@ -53,6 +53,9 @@ if env['platform'] == 'windows':
5353
if env['target'] in ('debug', 'd'):
5454
env.Append(CCFLAGS = ['-EHsc', '-D_DEBUG', '-MDd', '-Zi', '-FS'])
5555
env.Append(LINKFLAGS = ['-DEBUG:FULL'])
56+
elif env['target'] in ('release_debug',):
57+
env.Append(CCFLAGS = ['-O2', '-EHsc', '-DNDEBUG', '-MD', '-Zi', '-FS'])
58+
env.Append(LINKFLAGS = ['-DEBUG:FULL'])
5659
else:
5760
env.Append(CCFLAGS = ['-O2', '-EHsc', '-DNDEBUG', '-MD'])
5861
# untested

0 commit comments

Comments
 (0)