summaryrefslogtreecommitdiff
path: root/buildtools/wafsamba/samba_utils.py
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-04-18 19:41:47 +1000
committerAndrew Tridgell <tridge@samba.org>2010-04-18 21:08:48 +1000
commit639fe346670c760ec6a1536e2d3962e1c301b13c (patch)
tree3abdb02026367fce7b7608d5e4772224c66e35e8 /buildtools/wafsamba/samba_utils.py
parent7aa4c11fc4c25df6ea25dfe28d3dca851b91f909 (diff)
downloadsamba-639fe346670c760ec6a1536e2d3962e1c301b13c.tar.gz
samba-639fe346670c760ec6a1536e2d3962e1c301b13c.tar.bz2
samba-639fe346670c760ec6a1536e2d3962e1c301b13c.zip
build: support make V=1 for verbose build
this also adds support for other options, such as "make TESTS=testpattern"
Diffstat (limited to 'buildtools/wafsamba/samba_utils.py')
-rw-r--r--buildtools/wafsamba/samba_utils.py11
1 files changed, 10 insertions, 1 deletions
diff --git a/buildtools/wafsamba/samba_utils.py b/buildtools/wafsamba/samba_utils.py
index a3448b702a..cbea755f5b 100644
--- a/buildtools/wafsamba/samba_utils.py
+++ b/buildtools/wafsamba/samba_utils.py
@@ -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