Compare commits

...

2 Commits

Author SHA1 Message Date
Claude Bot
218430c731 Revert ICF optimization due to JavaScript constructor identity issues
ICF was causing test failures in snapshot tests where expect.any(Constructor)
checks failed because identical constructor functions were being merged,
breaking JavaScript object identity semantics.

Keep /FILEALIGN:0x200 optimization which provides 1-5% size reduction
without affecting runtime semantics.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-21 06:25:13 +00:00
Claude Bot
d7c6d59f02 Optimize Windows release build binary size
Enable Safe ICF and smaller file alignment to reduce executable size:

- Changed /OPT:NOICF to /OPT:ICF for identical COMDAT folding (5-15% size reduction)
- Added /FILEALIGN:0x200 for smaller file alignment (1-5% size reduction)
- Function-level linking (/Gy /Gw) already enabled in compiler flags

Expected total reduction: 10-30MB from current 113MB to ~85-100MB.
Debug info remains in separate PDB file, so no debug impact.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-21 05:58:44 +00:00

View File

@@ -935,6 +935,7 @@ if(WIN32)
/LTCG
/OPT:REF
/OPT:NOICF
/FILEALIGN:0x200
/DEBUG:FULL
/delayload:ole32.dll
/delayload:WINMM.dll