From: "Marek Paśnikowski" <marek@marekpasnikowski.pl>
To: guix-devel@gnu.org
Subject: Re: Global modification of #:make-flags
Date: Wed, 21 Aug 2024 10:42:15 +0200 [thread overview]
Message-ID: <874j7el120.fsf@marekpasnikowski.pl> (raw)
In-Reply-To: <CADBZEVmzcZx=zz_HU0XPQmBjJe24dHsVXmwiS0+2HWQuG1iNaQ@mail.gmail.com> (Sarthak Shah's message of "Wed, 21 Aug 2024 13:15:53 +0530")
Sarthak Shah <shahsarthakw@gmail.com> writes:
> Hey Marek, Yep, this is a patch for the repository. I haven't figured
> out how to programmatically patch it yet either; the original idea was
> to use time-machine, but it was causing some errors that I wasn't able
> to debug. Perhaps it's time I give it another shot.
>
> As for -Os, check out the GCC optimization flags example in this post:
>
> https://blog.lispy.tech/parameterized-packages-the-second-update.html
>
> You'll have to then specify this parameter for the packages you want
> to install, like so:
>
> guix install hello --with-parameter=gcc-oflag=-Os
>
> Back when I was working on it, there were talks about setting up
> global transforms for Guix, which is how this patch was supposed to be
> used globally. I am not sure if this feature has been added to Guix
> yet, but once it is you can then add this transform globally. I have
> added features that will check if the build system and any other user
> defined condition matches before applying parameterization. Otherwise,
> you'll have to add this transform to the packages you need -Os with,
> which is not very difficult, just a bit cumbersome...
>
Thank you for your patient and informative replies. Unfortunately, I am
currently not interested in package-specific optimizations, that is not
my goal.
I will be the first to test the global transformations, but right now I
will have better returns on my time investments in other projects
including a router system and continuous integration of my channel
updates. Or even learning how to work with the e-mail based bug and
patch systems used here.
Ah, the irony — I do see a future where I help to implement the global
transformations. But to realize this future I need to learn more and
complete my development system. While having a life outside of
computers... :-)
next prev parent reply other threads:[~2024-08-21 8:43 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 [this message]
2024-08-21 21:00 ` Ludovic Courtès
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=874j7el120.fsf@marekpasnikowski.pl \
--to=marek@marekpasnikowski.pl \
--cc=guix-devel@gnu.org \
/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).