Browse Source

[HTML5] Update syntax for lto.

Fabio Alessandrelli 5 years ago
parent
commit
54cda5c3b8
1 changed files with 2 additions and 1 deletions
  1. 2 1
      platform/javascript/detect.py

+ 2 - 1
platform/javascript/detect.py

@@ -85,7 +85,8 @@ def configure(env):
     if env["use_lto"]:
     if env["use_lto"]:
         env.Append(CCFLAGS=["-s", "WASM_OBJECT_FILES=0"])
         env.Append(CCFLAGS=["-s", "WASM_OBJECT_FILES=0"])
         env.Append(LINKFLAGS=["-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
     # Closure compiler
     if env["use_closure_compiler"]:
     if env["use_closure_compiler"]: