https://bugs.llvm.org/show_bug.cgi?id=41794

            Bug ID: 41794
           Summary: llvm-config: provide versioned symlinks
           Product: new-bugs
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: new bugs
          Assignee: unassignedb...@nondot.org
          Reporter: gerion.ent...@flump.de
                CC: htmldevelo...@gmail.com, llvm-bugs@lists.llvm.org

When installing LLVM it provides a binary llvm-config in the bin directory. Can
you also add a symlink to llvm-config-VERSION like e.g. clang also has? As an
example if someone wants to install LLVM 8, then a symlink llvm-config-8 is
created together with llvm-config.

The background of this is the possibility to handle multiple installed LLVM
versions as done by different Linux distributions. Currently, most
distributions patch the installation, permit only installation of one LLVM, or
install in a way that only one llvm-config tool is usable:

Debian:
The LLVM bin directory is installed to /usr/bin. llvm-config is patched to
llvm-config-VERSION to avoid conflicts.

Gentoo:
LLVM is installed to /usr/lib/llvm/VERSION/ and all bin directories are added
to PATH. So only the first llvm-config is found, when typing llvm-config.

Arch:
Allow only one LLVM installation (although multiple LLVM libraries can be
installed together).

Further related bug reports:
https://github.com/mesonbuild/meson/issues/5370
https://bugs.gentoo.org/677504

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to