From b0ff0527a37d988bfbc12d441c60523a50647f84 Mon Sep 17 00:00:00 2001 From: Tsukasa OMOTO Date: Sun, 20 Jul 2014 01:45:43 +0900 Subject: build: enable compiler optimization by default --- wscript | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'wscript') diff --git a/wscript b/wscript index bb55ba411e..080ef7f1cf 100644 --- a/wscript +++ b/wscript @@ -35,6 +35,11 @@ build_options = [ 'desc': 'whether to include binary compile time', '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', @@ -787,6 +792,10 @@ def options(opt): dest = 'LUA_VER', 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') -- cgit v1.2.3