From 0cebd3bd4d990f0679ac3c6092886a8621922470 Mon Sep 17 00:00:00 2001 From: Thomas Nagy Date: Fri, 16 Jun 2017 11:16:22 +0200 Subject: [PATCH] Clarify the buildall alias --- demos/variants/wscript | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/demos/variants/wscript b/demos/variants/wscript index 47f963f7..167dcbe0 100644 --- a/demos/variants/wscript +++ b/demos/variants/wscript @@ -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", #