[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Build Mesa with a different toolchain version
From: |
Thiago Jung Bauermann |
Subject: |
Re: Build Mesa with a different toolchain version |
Date: |
Thu, 03 Jun 2021 02:35:11 -0300 |
Em quarta-feira, 2 de junho de 2021, às 08:13:17 -03, Tobias Geerinckx-Rice
escreveu:
> Two notes after a calming walk in the woods:
Always a good idea!
> Tobias Geerinckx-Rice 写道:
>
> > no package has a ‘gcc-toolchain’ input.
>
> Not true: 2 do. I meant that ‘the toolchain’ used to build
> everything…
>
> > It is not used internally by Guix.
>
> …is not the "gcc-toolchain" package as such.
Thanks for the clarification.
> > (package (inherit gcc->gcc-10 mesa) …)
>
> Just turn it around:
>
> (define-public mesa/gcc-10
> (package
> (inherit mesa)
> (native-inputs
> `(("gcc" ,gcc-10)
> ,@(package-native-inputs mesa)))))
This worked (except for the mixed-toolchains issue):
(define-public mesa-10
(package
(inherit (package-with-c-toolchain mesa
`(("toolchain" ,gcc-toolchain-10))))
(name "mesa-10")))
--
Thanks,
Thiago