mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-10 06:29:00 +01:00
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:
parent
e4271b82da
commit
a3fbbff516
@ -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",
|
||||
|
Loading…
x
Reference in New Issue
Block a user