Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How to automatically rebuild Rust when upgrading LLVM
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
v_0ver
n00b
n00b


Joined: 09 Mar 2018
Posts: 13

PostPosted: Fri Jun 28, 2024 7:48 am    Post subject: How to automatically rebuild Rust when upgrading LLVM Reply with quote

When updating
Code:
emerge -avquDN rust llvm
if only llvm is updated, then rust is not rebuilt and remains dependent on the old version. Is it possible to somehow specify that when the dependencies are updated, the target program is also rebuild?
_________________
My personal overlay on GitHub
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54495
Location: 56N 3W

PostPosted: Fri Jun 28, 2024 9:12 am    Post subject: Reply with quote

v_0ver,

In short, you can't. Rust is very picky about its llvm version.
The rust ebuild says
Code:
# keep in sync with llvm ebuild of the same version as bundled one.
ALL_LLVM_TARGETS=( AArch64 AMDGPU ARC ARM AVR BPF CSKY DirectX Hexagon Lanai
        LoongArch M68k Mips MSP430 NVPTX PowerPC RISCV Sparc SPIRV SystemZ VE
        WebAssembly X86 XCore Xtensa )
ALL_LLVM_TARGETS=( "${ALL_LLVM_TARGETS[@]/#/llvm_targets_}" )
LLVM_TARGET_USEDEPS=${ALL_LLVM_TARGETS[@]/%/(-)?}

so even though the bundled LLVM is not forced, the LLVM version is.

You can patch that in your local overlay. That's your gentoo your way.
You can also keep all the pieces if it breaks. :)

Don't let that stop you trying.
Its worse than that. Other packages are also tied to LLVM versions, Rust is only one.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum