Clarify the buildall alias

This commit is contained in:
Thomas Nagy 2017-06-16 11:16:22 +02:00
parent 2c9f86cc62
commit 17cd653136
1 changed files with 7 additions and 7 deletions

View File

@ -72,20 +72,20 @@ def init(ctx):
cmd = name + '_' + x
variant = x
def buildall(ctx):
import waflib.Options
for x in ('build_debug', 'build_release'):
waflib.Options.commands.insert(0, x)
## if you work on "debug" 99% of the time, here is how to re-enable "waf build":
#for y in (BuildContext, CleanContext, InstallContext, UninstallContext):
# class tmp(y):
# variant = 'debug'
# you may also set 'win32/debug' instead of 'debug' (waf 1.6.9)
# you may also set 'win32/debug' instead of 'debug'
# the commands will be "build_win32/debug" or "build_win32/release"
# in this case you may want to modify Options.commands in this "init" function
# calling "waf buildall" will run "waf build_debug build_release"
def buildall(ctx):
import waflib.Options
for x in ('build_debug', 'build_release'):
waflib.Options.commands.insert(0, x)
# --------------------------
# or, if you want to memorize the default variant and just type "waf",
#