From a3fbbff51654dbc79d893354518d63dae2a0009e Mon Sep 17 00:00:00 2001 From: nakeee Date: Thu, 18 Sep 2008 10:04:03 +0000 Subject: [PATCH] scons lint=1 now adds -Werror git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@578 8ced0084-cf51-0410-be5f-012b33b47a6e --- SConstruct | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/SConstruct b/SConstruct index d74514b89c..01757bb540 100644 --- a/SConstruct +++ b/SConstruct @@ -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",