summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornakeee <nakeee@gmail.com>2008-09-18 10:04:03 +0000
committernakeee <nakeee@gmail.com>2008-09-18 10:04:03 +0000
commita3fbbff51654dbc79d893354518d63dae2a0009e (patch)
tree26b00ee53e13c32ae57eb1a9c204a7a01642f046
parente4271b82da8957a442cccd1f8fb52e78874a24e9 (diff)
scons lint=1 now adds -Werror
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@578 8ced0084-cf51-0410-be5f-012b33b47a6e
-rw-r--r--SConstruct9
1 files 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",