Skip to content

Commit dcfc90b

Browse files
committed
wscript: Add a runtime scripting check flag
1 parent fc5b8e4 commit dcfc90b

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

wscript

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,14 @@ submodules at specific revisions.
124124
default=False,
125125
help="Enable checking of math indexes")
126126

127+
g.add_option('--enable-scripting', action='store_true',
128+
default=False,
129+
help="Enable onboard scripting engine")
130+
131+
g.add_option('--scripting-checks', action='store_true',
132+
default=True,
133+
help="Enable runtime scripting sanity checks")
134+
127135
g = opt.ap_groups['linux']
128136

129137
linux_options = ('--prefix', '--destdir', '--bindir', '--libdir')
@@ -169,10 +177,6 @@ configuration in order to save typing.
169177
default=False,
170178
help="Enable SFML graphics library")
171179

172-
g.add_option('--enable-scripting', action='store_true',
173-
default=False,
174-
help="Enable onboard scripting engine")
175-
176180
g.add_option('--static',
177181
action='store_true',
178182
default=False,
@@ -269,6 +273,12 @@ def configure(cfg):
269273
else:
270274
cfg.end_msg('disabled', color='YELLOW')
271275

276+
cfg.start_msg('Scripting runtime checks')
277+
if cfg.options.scripting_checks:
278+
cfg.end_msg('enabled')
279+
else:
280+
cfg.end_msg('disabled', color='YELLOW')
281+
272282
cfg.env.append_value('GIT_SUBMODULES', 'mavlink')
273283

274284
cfg.env.prepend_value('INCLUDES', [

0 commit comments

Comments
 (0)