@@ -124,6 +124,14 @@ submodules at specific revisions.
124
124
default = False ,
125
125
help = "Enable checking of math indexes" )
126
126
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
+
127
135
g = opt .ap_groups ['linux' ]
128
136
129
137
linux_options = ('--prefix' , '--destdir' , '--bindir' , '--libdir' )
@@ -169,10 +177,6 @@ configuration in order to save typing.
169
177
default = False ,
170
178
help = "Enable SFML graphics library" )
171
179
172
- g .add_option ('--enable-scripting' , action = 'store_true' ,
173
- default = False ,
174
- help = "Enable onboard scripting engine" )
175
-
176
180
g .add_option ('--static' ,
177
181
action = 'store_true' ,
178
182
default = False ,
@@ -269,6 +273,12 @@ def configure(cfg):
269
273
else :
270
274
cfg .end_msg ('disabled' , color = 'YELLOW' )
271
275
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
+
272
282
cfg .env .append_value ('GIT_SUBMODULES' , 'mavlink' )
273
283
274
284
cfg .env .prepend_value ('INCLUDES' , [
0 commit comments