|
2026-10-20
| ||
| 16:30 | • Ticket [a0109510] make not rebuilding after header files change status still Open with 3 other changes artifact: 04ab4bae user: serhiy.storchaka | |
| 15:41 | Fix [a0109510a8]: make did not rebuild object files after a header file was changed. If the compiler supports -MMD -MP (gcc, clang) and make supports -include (GNU and BSD make, but not Solaris make), let the compiler write the dependencies of each object file into a .d file and include them. check-in: 4d8ef8c7 user: serhiy.storchaka tags: header-dependencies | |
|
2019-08-13
| ||
| 17:06 | • Ticket [a0109510] make not rebuilding after header files change status still Open with 3 other changes artifact: 4c9b5c81 user: fvogel | |
| 07:38 | • New ticket [a0109510]. artifact: dd9f38b5 user: chrstphrchvz | |
| Ticket UUID: | a0109510a834f58484ea967cfa40f1c29716344c | |||
| Title: | make not rebuilding after header files change | |||
| Type: | Bug | Version: | 8.6.9.1 | |
| Submitter: | chrstphrchvz | Created on: | 2019-08-13 07:38:08 | |
| Subsystem: | None | Assigned To: | nobody | |
| Priority: | 5 Medium | Severity: | Minor | |
| Status: | Open | Last Modified: | 2026-10-20 16:30:10 | |
| Resolution: | None | Closed By: | nobody | |
| Closed on: | ||||
| Description: |
Running As an example, changing This issue appears to affect all platforms. I haven't investigated whether this issue also applies to Tcl. | |||
| User Comments: |
serhiy.storchaka added on 2026-10-20 16:30:10:
Fixed in branch header-dependencies. If the compiler supports -MMD -MP (gcc and clang) and make supports -include, the compiler writes the header dependencies of every object file into a .d file, which the Makefile includes. This is done in unix/ and win/ (MinGW, MSYS2, Cygwin). Solaris make and dmake do not support -include, so configure checks it with ${MAKE-make}; nothing changes with them, nor with MSVC. For win/makefile.vc, nmake -f makefile.vc depend already generates the dependencies, but it failed for almost every file: tcl.h, the /std:c11 option and the generated tkUuid.h were not found. Now it passes the same options as the compiler. Tested on Linux (GNU make), FreeBSD (BSD make), OpenIndiana (gmake and Solaris make), MinGW (cross-compiled), MSYS2 UCRT64 and MSVC (with nmake depend). For example, after changing generic/tkInt.h, 156 object files are rebuilt with MinGW and MSYS2, and 152 with MSVC. Tcl has the same issue: Tcl ticket 0a908bb93b. fvogel added on 2019-08-13 17:06:37: Definitely an annoyance to me as well, thanks for the report. | |||
