Commit f1ba959
Dreams-Makers Studio
fix(windows): MSVC whole-archive linking for CLI and test_rle2
MSVC's linker only pulls .obj files from static libraries when symbols
are directly referenced through the dependency chain. The CLI and
test_rle2 use internal library symbols (extern globals, internal
functions) not reachable from the public API, so MSVC silently skips
those .obj files.
Fix: /WHOLEARCHIVE:maxcomp forces MSVC to include all object files
from the static library.1 parent f461ebe commit f1ba959
2 files changed
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
4 | 9 | | |
5 | 10 | | |
6 | 11 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
40 | 45 | | |
41 | 46 | | |
42 | 47 | | |
| |||
0 commit comments