On Tue, 30 Apr 2019 01:32:58 +0200 Lone_Wolf <lonewolf@xs4all.nl> wrote:
Thanks for all replies.
I've thought about this and think I have found a way that will work for all users.
My idea is to introduce a new environment variable, mesa_use_llvm .
It can have the following values :
1 > use aur llvm-lw-git and co
2 > use aur llvm-git and co
3 > use lordheavy unoffical repo llvm-svn and co
4 > use [extra] llvm and co
If mesa_use_llvm is indefined or something else then 1,2,3,4 fallback to value 1.
In the PKGBUILD I'll use depends+= / makedepends+= to add the correct packages.
Choosing which llvm to built against is then setting an environment variable.
Do you guys and girls think this way is a good idea ?
Lone_Wolf
No, it's not. You're WAY overcomplicating things. The llvm variants you mention should all "provide" llvm, so you just depend on that and can use whatever you want. Scimmia