[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Global modification of #:make-flags
From: |
Ludovic Courtès |
Subject: |
Re: Global modification of #:make-flags |
Date: |
Wed, 21 Aug 2024 23:00:28 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
Hi,
Marek Paśnikowski <marek@marekpasnikowski.pl> skribis:
> In order to prevent the XY problem, here is my goal: Rebuild the entire
> system with -Os optimization level. It is an experiment into viability
> of hardware-targeted optimizations.
Instead of trying to override #:make-flags, which is likely fragile as
it depends on details of each package’s build system, I would use a
strategy similar to that of ‘--tune’.
For ‘--tune’, the ‘tuning-compiler’ procedure in (guix transformations)
produces a compiler wrapper that passes ‘-march=whatever’, and
‘tuned-package’ injects that wrapper in the package of interest.
In fact you could reuse most of the code here to do what you want. And
we could create a package transformation for ‘-Os’. Could be neat!
HTH!
Ludo’.
- Re: Global modification of #:make-flags, (continued)
- Re: Global modification of #:make-flags, Suhail Singh, 2024/08/21
- Re: Global modification of #:make-flags, Sarthak Shah, 2024/08/21
- Re: Global modification of #:make-flags, Suhail Singh, 2024/08/21
- Re: Global modification of #:make-flags, Sergio Pastor Pérez, 2024/08/22
- Re: Global modification of #:make-flags, Sarthak Shah, 2024/08/23
Re: Global modification of #:make-flags, Marek Paśnikowski, 2024/08/21
Re: Global modification of #:make-flags,
Ludovic Courtès <=
Re: Global modification of #:make-flags, Sergio Pastor Pérez, 2024/08/22