diff options
| author | Bitflash <btf01@proton.me> | 2026-08-01 21:27:09 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-08-01 21:27:09 -0300 |
| commit | 09007b4a0321c594083fe1b5e67edbc8b257844b (patch) | |
| tree | 35af23374952f6c5397fc548a11adb722f0147fb /src/makefile.mingw | |
| parent | 2ffc50998c30f285f45c5c5d81975bf857885aa8 (diff) | |
build: list every header, so editing one rebuilds what includes it (#99)
sockcount.h was in neither makefile's HEADERS, so editing it rebuilt only the objects whose .cpp had also changed and the rest kept the old struct layout -- one object indexing a shared function-local static by the old layout and another by the new one, in the same binary. compat.h and font_roboto.h were missing from one list each. Verified with a full clean rebuild: no duplicate-section warning.
Diffstat (limited to 'src/makefile.mingw')
| -rw-r--r-- | src/makefile.mingw | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/makefile.mingw b/src/makefile.mingw index 94d2146..5be3704 100644 --- a/src/makefile.mingw +++ b/src/makefile.mingw | |||
| @@ -46,10 +46,17 @@ NODE_OBJS = obj/util.o obj/script.o obj/db.o obj/net.o obj/main.o \ | |||
| 46 | 46 | ||
| 47 | GUI_OBJS = obj/gui.o obj/main_gui.o obj/bitflash_res.o | 47 | GUI_OBJS = obj/gui.o obj/main_gui.o obj/bitflash_res.o |
| 48 | 48 | ||
| 49 | # Every header a .cpp here includes has to be listed, not just the interesting | ||
| 50 | # ones. sockcount.h was missing, and it declares a struct that lives in a | ||
| 51 | # function-local static shared across translation units: editing it rebuilt | ||
| 52 | # some objects and not others, and the linker said so in a warning easy to walk | ||
| 53 | # past -- "duplicate section ... has different size". That is one object | ||
| 54 | # indexing a struct by the old layout and another by the new one, in the same | ||
| 55 | # binary. Nothing crashed here, and nothing would say so if it had. | ||
| 49 | HEADERS = headers_core.h headers.h util.h main.h serialize.h uint256.h \ | 56 | HEADERS = headers_core.h headers.h util.h main.h serialize.h uint256.h \ |
| 50 | key.h bignum.h script.h db.h base58.h net.h nostr.h \ | 57 | key.h bignum.h script.h db.h base58.h net.h nostr.h \ |
| 51 | randomx_pow.h btfaddr.h btfchan.h btfrv.h btftunnel.h market.h \ | 58 | randomx_pow.h btfaddr.h btfchan.h btfrv.h btftunnel.h market.h \ |
| 52 | selftest.h walletcmd.h | 59 | selftest.h walletcmd.h sockcount.h compat.h font_roboto.h |
| 53 | 60 | ||
| 54 | all: bitflash.exe | 61 | all: bitflash.exe |
| 55 | 62 | ||