Commit 3c7cc0f
committed
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@76ef7ac1 parent 1220a09 commit 3c7cc0f
1 file changed
+4
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1410 | 1410 | | |
1411 | 1411 | | |
1412 | 1412 | | |
1413 | | - | |
1414 | | - | |
1415 | | - | |
| 1413 | + | |
| 1414 | + | |
| 1415 | + | |
| 1416 | + | |
1416 | 1417 | | |
1417 | 1418 | | |
1418 | 1419 | | |
| |||
0 commit comments