diff options
author | Tsukasa OMOTO <henry0312@gmail.com> | 2014-07-20 01:45:43 +0900 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-07-20 00:08:36 +0200 |
commit | b0ff0527a37d988bfbc12d441c60523a50647f84 (patch) | |
tree | 2b83aa8f7bcd51e60ad908da4a273045cefd4907 /wscript | |
parent | 887140b7d4c79f3afd3edc26591f9938a0acae38 (diff) | |
download | mpv-b0ff0527a37d988bfbc12d441c60523a50647f84.tar.bz2 mpv-b0ff0527a37d988bfbc12d441c60523a50647f84.tar.xz |
build: enable compiler optimization by default
Diffstat (limited to 'wscript')
-rw-r--r-- | wscript | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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') |