diff options
-rw-r--r-- | platform/javascript/detect.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/platform/javascript/detect.py b/platform/javascript/detect.py index 8f2961b33d..c401fd7b30 100644 --- a/platform/javascript/detect.py +++ b/platform/javascript/detect.py @@ -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"]: |