@@ -9,7 +9,7 @@ opts = Variables(customs, ARGUMENTS)
99env = 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' ]))
1313opts .Add (EnumVariable ('platform' , "Compilation platform" , 'windows' , ['windows' , 'x11' , 'linux' , 'osx' ]))
1414opts .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