Browse Source

waf: add support for thread statistics

zr-v5.1
Andy Piper 4 years ago committed by Andrew Tridgell
parent
commit
0726870e6f
  1. 6
      wscript

6
wscript

@ -106,6 +106,11 @@ def options(opt):
action='store_true', action='store_true',
default=False, default=False,
help='enable malloc guard regions.') help='enable malloc guard regions.')
g.add_option('--enable-stats',
action='store_true',
default=False,
help='enable OS level thread statistics.')
g.add_option('--bootloader', g.add_option('--bootloader',
action='store_true', action='store_true',
@ -289,6 +294,7 @@ def configure(cfg):
cfg.env.ENABLE_ASSERTS = cfg.options.enable_asserts cfg.env.ENABLE_ASSERTS = cfg.options.enable_asserts
cfg.env.BOOTLOADER = cfg.options.bootloader cfg.env.BOOTLOADER = cfg.options.bootloader
cfg.env.ENABLE_MALLOC_GUARD = cfg.options.enable_malloc_guard cfg.env.ENABLE_MALLOC_GUARD = cfg.options.enable_malloc_guard
cfg.env.ENABLE_STATS = cfg.options.enable_stats
cfg.env.OPTIONS = cfg.options.__dict__ cfg.env.OPTIONS = cfg.options.__dict__

Loading…
Cancel
Save