mirror of https://gitlab.com/ita1024/waf.git
cpplint: skip it if waf can't import the module
This commit is contained in:
parent
ab108c002d
commit
67eebf06a0
|
@ -95,10 +95,11 @@ def options(opt):
|
|||
def configure(conf):
|
||||
conf.start_msg('Checking cpplint')
|
||||
try:
|
||||
import cpplint
|
||||
import cpplnt
|
||||
conf.end_msg('ok')
|
||||
except ImportError:
|
||||
conf.fatal('cpplint not found. try "pip install cpplint".')
|
||||
conf.end_msg('ok')
|
||||
conf.env.CPPLINT_SKIP = True
|
||||
conf.end_msg('not found, skipping it.')
|
||||
|
||||
|
||||
class cpplint_formatter(Logs.formatter):
|
||||
|
|
Loading…
Reference in New Issue