[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#27284: [PATCH 1/8] build: Factorize module compilation in (guix buil
From: |
Ludovic Courtès |
Subject: |
bug#27284: [PATCH 1/8] build: Factorize module compilation in (guix build compile). |
Date: |
Sun, 22 Oct 2017 19:51:14 -0700 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) |
Heya,
Eric Bavier <address@hidden> skribis:
> And from NEWS for the 4.2 release:
>
> * The amount of parallelism can be determined by querying MAKEFLAGS, even when
> the job server is enabled (previously MAKEFLAGS would always contain only
> "-j", with no number, when job server was enabled).
Thanks for digging! I didn’t expect such things to ever change.
> It Would Be Nice if the functionality worked for older versions of make
> that people might have on their systems.
With the patch I posted, Scheme compilation would always use one thread
per core, which is what it currently does in ‘master’.
That’s in argument in favor of the lazy in me: it’s an improvement for
people using a reasonably recent system, and it’s not a regression for
the others! :-)
WDYT?
> Using the jobserver directly would require quite a bit of work for the
> current patch set, but I wonder if there is another way to determine
> the -jN parameter for make<4.2 that we could use. Maybe simply
> polling the jobserver fds at the start?
AIUI the job server does not reveal how many jobs are allowed. It
merely grants you an execution token.
Or did you have something else in mind?
Thanks,
Ludo’.
- bug#27284: [PATCH 0/8] 'guix pull' creates several derivations, Ludovic Courtès, 2017/10/20
- bug#27284: [PATCH 3/8] discovery: Move 'file-name->module-name' to (guix modules)., Ludovic Courtès, 2017/10/20
- bug#27284: [PATCH 2/8] build: Honor make's '-j' flag., Ludovic Courtès, 2017/10/20
- bug#27284: [PATCH 4/8] gexp: Add 'file-union'., Ludovic Courtès, 2017/10/20
- bug#27284: [PATCH 7/8] gexp: 'directory-union' has a #:quiet? parameter., Ludovic Courtès, 2017/10/20
- bug#27284: [PATCH 1/8] build: Factorize module compilation in (guix build compile)., Ludovic Courtès, 2017/10/20
bug#27284: [PATCH 5/8] gexp: Add 'directory-union'., Ludovic Courtès, 2017/10/20
bug#27284: [PATCH 6/8] union: Parametrize the symlink procedure ., Ludovic Courtès, 2017/10/20
bug#27284: [PATCH 8/8] DRAFT Add (guix self) and use it when pulling., Ludovic Courtès, 2017/10/20