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:
parent
0bf262cc16
commit
e4271b82da
|
@ -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++",
|
||||
|
|
Loading…
Reference in New Issue