aboutsummaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
Diffstat (limited to 'wscript')
-rw-r--r--wscript7
1 files changed, 7 insertions, 0 deletions
diff --git a/wscript b/wscript
index 007a9207..f44ba1ad 100644
--- a/wscript
+++ b/wscript
@@ -32,6 +32,8 @@ def options(opt):
help="Do not build command line utilities")
opt.add_option('--test', action='store_true', default=False, dest='build_tests',
help="Build unit tests")
+ opt.add_option('--stack-check', action='store_true', default=False, dest='stack_check',
+ help="Include runtime stack sanity checks")
def configure(conf):
conf.line_just = max(conf.line_just, 59)
@@ -44,6 +46,11 @@ def configure(conf):
conf.env['BUILD_TESTS'] = Options.options.build_tests
conf.env['BUILD_UTILS'] = not Options.options.no_utils
+ if Options.options.stack_check:
+ autowaf.define(conf, 'SERD_STACK_CHECK', SERD_VERSION)
+
+ conf.env['BUILD_TESTS'] = Options.options.build_tests
+
autowaf.define(conf, 'SERD_VERSION', SERD_VERSION)
conf.write_config_header('serd-config.h', remove=False)