you can now use scons debug=1 for -g and -DLOGGING while regular

build is with -O3


git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@577 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
nakeee 2008-09-18 09:49:58 +00:00
parent 0bf262cc16
commit e4271b82da
1 changed files with 7 additions and 2 deletions

View File

@ -17,8 +17,6 @@ warnings = [
#'unreachable-code',
]
compileFlags = [
# '-g',
'-O3',
'-fno-strict-aliasing',
'-msse2',
'-D_FILE_OFFSET_BITS=64',
@ -74,6 +72,13 @@ if sys.platform == 'darwin':
lib_paths = include_paths
debug = ARGUMENTS.get('debug', 0)
if int(debug):
compileFlags.append('-g')
compileFlags.append('-DLOGGING')
else:
compileFlags.append('-O3')
env = Environment(
CC = "gcc",
CXX = "g++",