You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-08 12:40:44 +00:00
Allow to not optimize release build
(cherry picked from commit 0b298d201e)
This commit is contained in:
committed by
Rémi Verschelde
parent
ba70958b29
commit
6b6324441f
@@ -195,12 +195,11 @@ def configure(env):
|
||||
if env["optimize"] == "speed": # optimize for speed (default)
|
||||
env.Append(LINKFLAGS=["-O2"])
|
||||
env.Append(CCFLAGS=["-O2", "-fomit-frame-pointer"])
|
||||
env.Append(CPPDEFINES=["NDEBUG"])
|
||||
else: # optimize for size
|
||||
elif env["optimize"] == "size": # optimize for size
|
||||
env.Append(CCFLAGS=["-Os"])
|
||||
env.Append(CPPDEFINES=["NDEBUG"])
|
||||
env.Append(LINKFLAGS=["-Os"])
|
||||
|
||||
env.Append(CPPDEFINES=["NDEBUG"])
|
||||
if can_vectorize:
|
||||
env.Append(CCFLAGS=["-ftree-vectorize"])
|
||||
if env["target"] == "release_debug":
|
||||
|
||||
Reference in New Issue
Block a user