summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2018-07-21 17:26:14 -0300
committerJuan Linietsky <reduzio@gmail.com>2018-07-21 17:26:49 -0300
commit2b9902db06d922fc98ae49c0d1e31123feed469a (patch)
tree40cf433aedb97526053dbdeb192250ceedbe903e /SConstruct
parentcfcb6e11f25adb13177ba08777263288a5ec6f61 (diff)
-Fix disable_3d flag
-Add extra flag optimize=[size,speed] to be able to prioritize size
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct1
1 files changed, 1 insertions, 0 deletions
diff --git a/SConstruct b/SConstruct
index cb1e9fd567..50fb5bc48c 100644
--- a/SConstruct
+++ b/SConstruct
@@ -145,6 +145,7 @@ opts.Add(EnumVariable('bits', "Target platform bits", 'default', ('default', '32
opts.Add('p', "Platform (alias for 'platform')", '')
opts.Add('platform', "Target platform (%s)" % ('|'.join(platform_list), ), '')
opts.Add(EnumVariable('target', "Compilation target", 'debug', ('debug', 'release_debug', 'release')))
+opts.Add(EnumVariable('optimize', "Optimization type", 'speed', ('speed', 'size')))
opts.Add(BoolVariable('tools', "Build the tools (a.k.a. the Godot editor)", True))
opts.Add(BoolVariable('use_lto', 'Use link-time optimization', False))