1
0
mirror of https://git.code.sf.net/p/mingw-w64/mingw-w64 synced 2025-04-18 17:44:18 +03:00

crt: Don't delete implicit intermediate .a/.def files after building

Previously, GNU make would delete the implicit intermediate .a/.def
files after building, see [1] for details.

Not deleting them does inflate the size of the build directory a
little bit, but only very marginally (from 201 to 213 MB for a
build with GCC for x86_64).

By keeping them around, they are easier to inspect if debugging
some aspect of them. (Although I haven't really needed to do
this - this isn't the main motivation.)

By not removing them, a build of mingw-w64-crt doesn't end with
a huge wall of text of make doing "rm <all-implicit-files>",
making it easier to observe the output of the other compile
commands instead.

[1] https://www.gnu.org/software/make/manual/html_node/Chained-Rules.html

Signed-off-by: Martin Storsjö <martin@martin.st>
This commit is contained in:
Martin Storsjö 2025-04-02 22:42:08 +03:00
parent 5433028416
commit b72e93b85a

View File

@ -4324,3 +4324,7 @@ XFAIL_TESTS = \
# Include the complex math testcase fragment.
include testcases/complex/Makefile.am
# Don't delete the implicit intermediate files after building.
.PRECIOUS: lib32/lib%.a lib32/%.def lib64/lib%.a lib64/%.def libarm32/lib%.a libarm32/%.def libarm64/lib%.a libarm64/%.def