mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +03:00
build: support make V=1 for verbose build
this also adds support for other options, such as "make TESTS=testpattern"
This commit is contained in:
parent
7aa4c11fc4
commit
639fe34667
@ -449,7 +449,16 @@ def CHECK_MAKEFLAGS(bld):
|
||||
jobs_set = False
|
||||
for opt in makeflags.split():
|
||||
# options can come either as -x or as x
|
||||
if opt[0] != '-':
|
||||
if opt[0:2] == 'V=':
|
||||
Options.options.verbose = Logs.verbose = int(opt[2:])
|
||||
if Logs.verbose > 0:
|
||||
Logs.zones = ['runner']
|
||||
if Logs.verbose > 2:
|
||||
Logs.zones = ['*']
|
||||
elif opt[0].isupper() and opt.find('=') != -1:
|
||||
loc = opt.find('=')
|
||||
setattr(Options.options, opt[0:loc], opt[loc+1:])
|
||||
elif opt[0] != '-':
|
||||
for v in opt:
|
||||
if v == 'j':
|
||||
jobs_set = True
|
||||
|
Loading…
Reference in New Issue
Block a user