aboutsummaryrefslogtreecommitdiff
path: root/waflib
diff options
context:
space:
mode:
Diffstat (limited to 'waflib')
-rw-r--r--waflib/extras/autowaf.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/waflib/extras/autowaf.py b/waflib/extras/autowaf.py
index 243ab05..57c0242 100644
--- a/waflib/extras/autowaf.py
+++ b/waflib/extras/autowaf.py
@@ -93,6 +93,11 @@ def set_options(opt, debug_by_default=False, test=False):
g_step = 1
+def add_flags(opt, flags):
+ for name, desc in flags.items():
+ opt.add_option('--' + name, action='store_true',
+ dest=name.replace('-', '_'), help=desc)
+
def get_check_func(conf, lang):
if lang == 'c':
return conf.check_cc