You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Add support for whole program optimization on MSVC
Since it's similar to LTO, it can be enabled by setting use_lto=yes.
This commit is contained in:
@@ -188,6 +188,9 @@ def configure(env):
|
|||||||
else:
|
else:
|
||||||
VC_PATH = ""
|
VC_PATH = ""
|
||||||
|
|
||||||
|
if (env["use_lto"]):
|
||||||
|
env.Append(CCFLAGS=['/GL'])
|
||||||
|
env.Append(LINKFLAGS=['/LTCG'])
|
||||||
if (env["openmp"]):
|
if (env["openmp"]):
|
||||||
env.Append(CPPFLAGS=['/openmp'])
|
env.Append(CPPFLAGS=['/openmp'])
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user