From dd64f99fd17c1cb5aeefda91618111c6702832a7 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Thu, 20 Oct 2011 14:57:13 +1100 Subject: [PATCH] build: explain the passing of make options to waf add a comment explaining how we pass make command line options into waf Autobuild-User: Andrew Tridgell Autobuild-Date: Thu Oct 20 07:24:02 CEST 2011 on sn-devel-104 --- buildtools/wafsamba/samba_utils.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/buildtools/wafsamba/samba_utils.py b/buildtools/wafsamba/samba_utils.py index 3adf533b0e4..5e16a5d470b 100644 --- a/buildtools/wafsamba/samba_utils.py +++ b/buildtools/wafsamba/samba_utils.py @@ -487,6 +487,13 @@ def CHECK_MAKEFLAGS(bld): if Logs.verbose > 2: Logs.zones = ['*'] elif opt[0].isupper() and opt.find('=') != -1: + # this allows us to set waf options on the make command line + # for example, if you do "make FOO=blah", then we set the + # option 'FOO' in Options.options, to blah. If you look in wafsamba/wscript + # you will see that the command line accessible options have their dest= + # set to uppercase, to allow for passing of options from make in this way + # this is also how "make test TESTS=testpattern" works, and + # "make VERBOSE=1" as well as things like "make SYMBOLCHECK=1" loc = opt.find('=') setattr(Options.options, opt[0:loc], opt[loc+1:]) elif opt[0] != '-': -- 2.34.1