help-guix
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to compile native?


From: Vincent Legoll
Subject: Re: How to compile native?
Date: Wed, 14 Apr 2021 20:45:31 +0200

Hello,

On Wed, Apr 14, 2021 at 8:32 PM Joshua Branson <jbranso@dismail.de> wrote:
>
> Charles Direg <carloshujara@gmail.com> writes:
>
> > Hi,
> >
> > How can I do a compilation of the packages natively?
>
> Yes this is possible!  You can disable substitutes to compile all
> packages natively.

I think Charles meant compilation optimized for his actual processor
instead of being compatible with all x86_64. Like with the following
CFLAGS:

> > What I mean is that, for example in Gentoo it can be used inside
> > /etc/portage/make.conf: CFLAGS="-O2 -march=native -mtune=native"

I think there's no use of giving "-mtune" when you have "-march", c.f.:
https://gcc.gnu.org/onlinedocs/gcc/x86-Options.html#index-march-14

> > Is that possible in guix?

I've heard it is, but not seen the recipe.

> Currently guix does not support gentoo style flags..yet.  Though there
> are talks to do something like that.

Gentoo use flags are something different, used to disable things in
packages.

> If you wanted to compile packages
> with specific compile flags, then you'll need to make custom package
> definitions.

That's probably what Charles wants, but in a global way, settings CFLAGS once
for the whole distro.

-- 
Vincent Legoll



reply via email to

[Prev in Thread] Current Thread [Next in Thread]