Commit fc1fa12
committed
ci(msvc): compile launcher with MAGOS_TEST_BUILD for tests (+ Makefile Rust prereqs)
MSVC CI linked launcher.obj (compiled without the MAGOS_TEST_BUILD
guard, so it retained main()) into test_steam_env.exe and
test_injection.exe, which each define their own main -> LNK2005 /
LNK1169. Compile a guarded launcher_test.obj and link that into the
test exes instead; the production magos_launcher.exe stays unguarded.
Also move /SUBSYSTEM:WINDOWS off the cl compile line (D9002) to the
link step for stub_target.exe (it defines WinMain, so WINDOWS is
correct). Mirrors the Makefile's tests/launcher.o rule.
Makefile: the $(RUST_LIB) rule had no source prereqs, so incremental
builds linked a stale staticlib when only Rust sources changed. Add
discovery/src/*.rs + Cargo manifests as prereqs. (GNU make's ** is not
recursive and expands to nothing here, so src/*.rs is listed explicitly.)1 parent 842648a commit fc1fa12
2 files changed
Lines changed: 17 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
75 | 79 | | |
76 | 80 | | |
77 | 81 | | |
78 | | - | |
| 82 | + | |
79 | 83 | | |
80 | | - | |
81 | | - | |
| 84 | + | |
| 85 | + | |
82 | 86 | | |
83 | | - | |
| 87 | + | |
84 | 88 | | |
85 | 89 | | |
86 | 90 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
23 | 27 | | |
24 | 28 | | |
25 | 29 | | |
| |||
54 | 58 | | |
55 | 59 | | |
56 | 60 | | |
57 | | - | |
| 61 | + | |
58 | 62 | | |
59 | 63 | | |
60 | 64 | | |
| |||
0 commit comments