summaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
Diffstat (limited to 'wscript')
-rw-r--r--wscript9
1 files changed, 9 insertions, 0 deletions
diff --git a/wscript b/wscript
index bb55ba411e..080ef7f1cf 100644
--- a/wscript
+++ b/wscript
@@ -36,6 +36,11 @@ build_options = [
'default': 'enable',
'func': check_true
}, {
+ 'name': '--optimize',
+ 'desc': 'whether to optimize',
+ 'default': 'enable',
+ 'func': check_true
+ }, {
'name': '--debug-build',
'desc': 'whether to compile-in debugging information',
'default': 'enable',
@@ -788,6 +793,10 @@ def options(opt):
help = "select Lua package which should be autodetected. Choices: 51 51deb 51fbsd 52 52deb 52fbsd luajit")
@conf
+def is_optimization(ctx):
+ return getattr(ctx.options, 'enable_optimize')
+
+@conf
def is_debug_build(ctx):
return getattr(ctx.options, 'enable_debug-build')