mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-16 05:42:55 +00: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',
|
'-DGCC_HASCLASSVISIBILITY',
|
||||||
'-fvisibility=hidden',
|
'-fvisibility=hidden',
|
||||||
]
|
]
|
||||||
compileFlags += [ '-W' + warning for warning in warnings ]
|
|
||||||
#compileFlags += [ '-DLOGGING' ]
|
|
||||||
#compileFlags += [ '-fomit-frame-pointer' ]
|
#compileFlags += [ '-fomit-frame-pointer' ]
|
||||||
if sys.platform == 'darwin':
|
if sys.platform == 'darwin':
|
||||||
compileFlags += [ '-I/opt/local/include' ]
|
compileFlags += [ '-I/opt/local/include' ]
|
||||||
@ -78,6 +77,12 @@ if int(debug):
|
|||||||
compileFlags.append('-DLOGGING')
|
compileFlags.append('-DLOGGING')
|
||||||
else:
|
else:
|
||||||
compileFlags.append('-O3')
|
compileFlags.append('-O3')
|
||||||
|
|
||||||
|
lint = ARGUMENTS.get('lint', 0)
|
||||||
|
if int(lint):
|
||||||
|
warnings.append('error')
|
||||||
|
|
||||||
|
compileFlags += [ '-W' + warning for warning in warnings ]
|
||||||
|
|
||||||
env = Environment(
|
env = Environment(
|
||||||
CC = "gcc",
|
CC = "gcc",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user