[llvm-dev] Managing two versions of LLVM on the computer?

Alex Denisov via llvm-dev llvm-dev at lists.llvm.org
Sun May 19 11:56:44 PDT 2019

Hi Osman,

Not sure if I understood correctly, what is the role of Git in this scenario?
For my use cases I just copy a number of precompiled versions[1] of LLVM and put them under /opt/llvm/. Here is how it looks like on my machine:

> ls /opt/llvm/
3.8.0  3.9.0  4.0.0  5.0.0  6.0.0  7.0.0  8.0.0  monorepo

Then ,when I need to use a different version to compile something I usually override compiler using environment variables, e.g.:

> export CC=/opt/llvm/3.9.0/bin/clang
> export CXX=/opt/llvm/3.9.0/bin/clang++
> cmake or whatever else is needed

I hope it helps.

> On 19. May 2019, at 02:23, Osman Zakir via llvm-dev <llvm-dev at lists.llvm.org> wrote:
> I wanted to try installing both LLVM 8 and 9 on the same machine and managing them with a version control system, but is this possible?  And if so, would Git be a good version control system to use?  How do LLVM developers use it for that (if they do)?
> _______________________________________________
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
> https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: Message signed with OpenPGP
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20190519/06335e12/attachment.sig>

More information about the llvm-dev mailing list