1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

[HTML5] Update syntax for lto.

This commit is contained in:
Fabio Alessandrelli
2020-10-24 22:41:30 +02:00
parent 05261cceaf
commit 54cda5c3b8

View File

@@ -85,7 +85,8 @@ def configure(env):
if env["use_lto"]:
env.Append(CCFLAGS=["-s", "WASM_OBJECT_FILES=0"])
env.Append(LINKFLAGS=["-s", "WASM_OBJECT_FILES=0"])
env.Append(LINKFLAGS=["--llvm-lto", "1"])
env.Append(CCFLAGS=["-flto"])
env.Append(LINKFLAGS=["-flto"])
# Closure compiler
if env["use_closure_compiler"]: