You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(smol): disable LTCG on Windows to prevent LNK2005 linker errors
Removes --with-ltcg flag for Windows builds due to multiply defined
symbol errors between abseil.lib and v8_libbase.lib.
Error: abseil.lib(abseil.mutex.obj) : error LNK2005: absl::Mutex::Dtor
already defined in v8_libbase.lib(v8_libbase.mutex.obj)
Node.js made LTCG optional and disabled by default in PR #21186
specifically to avoid these types of linker conflicts. LTCG remains
enabled for Unix/Linux/macOS builds via --enable-lto.
Trade-off: Slightly larger binary (~5-10MB) but successful builds.
References:
- nodejs/node#21186
- nodejs/node@76ef7ac
0 commit comments