From: "Ludovic Courtès" <ludo@gnu.org>
To: "Marek Paśnikowski" <marek@marekpasnikowski.pl>
Cc: guix-devel@gnu.org
Subject: Re: Global modification of #:make-flags
Date: Wed, 21 Aug 2024 23:00:28 +0200 [thread overview]
Message-ID: <8734mxpp5f.fsf@gnu.org> (raw)
In-Reply-To: <87jzgbo6hp.fsf@marekpasnikowski.pl> ("Marek Paśnikowski"'s message of "Tue, 20 Aug 2024 12:04:18 +0200")
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’.
next prev parent reply other threads:[~2024-08-21 21:00 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-20 10:04 Global modification of #:make-flags Marek Paśnikowski
2024-08-20 10:29 ` Sarthak Shah
2024-08-20 13:13 ` Suhail Singh
2024-08-20 23:42 ` Sarthak Shah
2024-08-21 6:54 ` Suhail Singh
2024-08-21 7:27 ` Sarthak Shah
2024-08-21 14:37 ` Suhail Singh
2024-08-22 16:14 ` Sergio Pastor Pérez
2024-08-23 9:01 ` Sarthak Shah
2024-08-21 7:09 ` Marek Paśnikowski
2024-08-21 7:21 ` Sarthak Shah
2024-08-21 7:34 ` Marek Paśnikowski
2024-08-21 7:45 ` Sarthak Shah
2024-08-21 8:42 ` Marek Paśnikowski
2024-08-21 21:00 ` Ludovic Courtès [this message]
2024-09-06 16:27 ` Marek Paśnikowski
2024-08-22 16:35 ` Sergio Pastor Pérez
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8734mxpp5f.fsf@gnu.org \
--to=ludo@gnu.org \
--cc=guix-devel@gnu.org \
--cc=marek@marekpasnikowski.pl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).