[gpu] Use -Os -flto for web demo build

Reduces wasm size from 933K to 687K via size optimization
and link-time dead code elimination.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Behdad EsfahbodandClaude Opus 4.6 committed 2026-03-28 03:56:14 -06:00
1 parent 30e1a703f0
commit 833e90f904
1 file changed
+1 -1
+1 -1
View File
@@ -12,7 +12,7 @@ mkdir -p "$OUTDIR"
em++ \
-std=c++17 \
-O2 \
-Os -flto \
-I"$SRCDIR/src" \
-DHB_NO_MT \
-DHAVE_ROUND \