Re: [PATCH v2 4/6] Makefile: Do not install the container testroot if not running tests
Sam James <[email protected]>
| Newsgroups | gmane.comp.lib.glibc.alpha |
|---|---|
| Organization | Gentoo |
| Message-ID | <[email protected]> |
Adhemerval Zanella <[email protected]> writes: > Every subdirectory tests target depends on > $(objpfx)testroot.pristine/install.stamp, whose recipe performs a full > DESTDIR installation (about 12s and 154MB on x86_64). The testroot is > only consumed by the container tests, which do not run when > run-built-tests is no, so skip it entirely in that case. I'd noticed that and didn't debug it, my bad.. > > This saves about 10s on x86_64 [1] and 30s on aarch64 [2]. > > [1] Ryzen 5900x, 12c/24t, gcc 16.1.1, binutils 2.26, and GNU make 4.3 > [2] N1, 80c, gcc 15.1.1, binutils 2.25, GNU make 4.3 Reviewed-by: Sam James <[email protected]> > --- > Makefile | 5 +++++ > 1 file changed, 5 insertions(+) > > diff --git a/Makefile b/Makefile > index a6e5317de7b..79dbe0f40d3 100644 > --- a/Makefile > +++ b/Makefile > @@ -792,8 +792,13 @@ else > LINKS_DSO_PROGRAM = links-dso-program > endif > > +# The testroot is only used by the container tests, which are not run > +# when run-built-tests is no; skip the installation entirely in that > +# case. > +ifeq ($(run-built-tests),yes) > $(tests-container) $(addsuffix /tests,$(subdirs)) : \ > $(objpfx)testroot.pristine/install.stamp > +endif > $(objpfx)testroot.pristine/install.stamp : > test -d $(objpfx)testroot.pristine || \ > mkdir $(objpfx)testroot.pristine
signature.asc
(application/pgp-signature, 418 B)
-----BEGIN PGP SIGNATURE----- iQEBBAEWCgCpFiEEJaa7iN2bdkxrVUHCc4QJ9SDfkZAFAmpHlpcbFIAAAAAABAAO bWFudTIsMi41KzEuMTIsMiwyXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25z Lm9wZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQyNUE2QkI4OEREOUI3NjRDNkI1NTQx QzI3Mzg0MDlGNTIwREY5MTkwDxxzYW1AZ2VudG9vLm9yZwAKCRBzhAn1IN+RkBhH AQD/QpBp3vivJ4viX+Lw/K2PXXWLRZM7KN2Bpb262ftM3AEAz4mCdY2SJnyIssbW ZhlNTAm0TsvlYgpDmHXMgeS7yg0= =Eoop -----END PGP SIGNATURE-----