You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-30 16:26:50 +00:00
Improve LTO build with MSVC
This commit is contained in:
@@ -190,6 +190,10 @@ def configure(env):
|
|||||||
|
|
||||||
if (env["use_lto"]):
|
if (env["use_lto"]):
|
||||||
env.Append(CCFLAGS=['/GL'])
|
env.Append(CCFLAGS=['/GL'])
|
||||||
|
env.Append(ARFLAGS=['/LTCG'])
|
||||||
|
if env["progress"]:
|
||||||
|
env.Append(LINKFLAGS=['/LTCG:STATUS'])
|
||||||
|
else:
|
||||||
env.Append(LINKFLAGS=['/LTCG'])
|
env.Append(LINKFLAGS=['/LTCG'])
|
||||||
|
|
||||||
env.Append(CCFLAGS=["/I" + p for p in os.getenv("INCLUDE").split(";")])
|
env.Append(CCFLAGS=["/I" + p for p in os.getenv("INCLUDE").split(";")])
|
||||||
|
|||||||
Reference in New Issue
Block a user