Use -Werror -Weverything in maintainer mode
This commit is contained in:
parent
3a12b8f2db
commit
352e2ccd05
|
|
@ -1,15 +1,15 @@
|
||||||
#
|
#
|
||||||
# SCons check for maintainer mode
|
# SCons check for maintainer mode
|
||||||
#
|
#
|
||||||
# Version 1.5
|
# Version 1.6
|
||||||
# 16-Aug-2019
|
# 06-Jun-2020
|
||||||
#
|
#
|
||||||
|
|
||||||
from SCons.Script import ARGUMENTS
|
from SCons.Script import ARGUMENTS
|
||||||
|
|
||||||
def checkForMaintainerMode(conf,force=False):
|
def checkForMaintainerMode(conf,force=False):
|
||||||
"""Check if user wants to enable maintainer compilation mode.
|
"""Check if user wants to enable maintainer compilation mode.
|
||||||
|
|
||||||
If force is true than maintainer mode is forced"""
|
If force is true than maintainer mode is forced"""
|
||||||
conf.Message("Checking whether to enable maintainer mode... ")
|
conf.Message("Checking whether to enable maintainer mode... ")
|
||||||
maint=ARGUMENTS.get('maintainer-mode', 0) or \
|
maint=ARGUMENTS.get('maintainer-mode', 0) or \
|
||||||
|
|
@ -23,6 +23,8 @@ def checkForMaintainerMode(conf,force=False):
|
||||||
conf.Result(1)
|
conf.Result(1)
|
||||||
conf.env.Append(CCFLAGS = '-O0')
|
conf.env.Append(CCFLAGS = '-O0')
|
||||||
conf.env.Append(CPPFLAGS = '-DMAINTAINER_MODE')
|
conf.env.Append(CPPFLAGS = '-DMAINTAINER_MODE')
|
||||||
|
conf.env.Append(CCFLAGS = '-Werror')
|
||||||
|
conf.env.Append(CCFLAGS = '-Weverything')
|
||||||
return True
|
return True
|
||||||
else:
|
else:
|
||||||
conf.Result(0)
|
conf.Result(0)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user