scons lint=1 now adds -Werror

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@578 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
nakeee 2008-09-18 10:04:03 +00:00
parent e4271b82da
commit a3fbbff516

View file

@ -24,8 +24,7 @@ compileFlags = [
'-DGCC_HASCLASSVISIBILITY',
'-fvisibility=hidden',
]
compileFlags += [ '-W' + warning for warning in warnings ]
#compileFlags += [ '-DLOGGING' ]
#compileFlags += [ '-fomit-frame-pointer' ]
if sys.platform == 'darwin':
compileFlags += [ '-I/opt/local/include' ]
@ -78,6 +77,12 @@ if int(debug):
compileFlags.append('-DLOGGING')
else:
compileFlags.append('-O3')
lint = ARGUMENTS.get('lint', 0)
if int(lint):
warnings.append('error')
compileFlags += [ '-W' + warning for warning in warnings ]
env = Environment(
CC = "gcc",