[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #14927] Fix for building archive members in parallel

From: Dmitry Goncharov
Subject: [bug #14927] Fix for building archive members in parallel
Date: Mon, 2 Jan 2023 23:31:24 -0500 (EST)

Follow-up Comment #8, bug #14927 (project make):

[comment #5 comment #5:]
> The disadvantage to this is that the object files are not considered
intermediate, and so they are left behind after the build completes rather
than being deleted.

If this makefile is modified to build a shared object, rather than an archive,
then everybody expects the object files to be left behind. Which raises the
question whether this is really such a disadvantage.
In fact, there are reasons to keep these object files. E.g. for this a.c i'd
write a unit test a.t.c, which contains function main and tests code from a.o.
Then a.o and a.t.o are linked to an executable.

However, this is somewhat awkward, that make has a special syntax for building
archives and make supports parallel builds and these two features cannot be
used together.


Reply to this item at:


Message sent via Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]