Commit 87481e3
committed
Handle new LLVM soname
LLVM now includes the minor version in the soname, and also changed
the names of library files. libLLVM-18.so is now a symlink to
libLLVM.so.18.1.
We need to make two changes to support this: First, we need to
run the installed llvm-config binary, rather than the one from
the build directory. This is because the symlink does not exist
in the build directory, but llvm-config requires it. This looks
like an LLVM bug to me, but it's probably a good idea to use the
installed version anyway.
Second, when installing LLVM into the libdir, we need to follow
the symlink from libLLVM-18.so to libLLVM.so.18.1, as this is what
will actually get loaded at runtime.1 parent 00e3b26 commit 87481e3
2 files changed
+7
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2026 | 2026 | | |
2027 | 2027 | | |
2028 | 2028 | | |
2029 | | - | |
| 2029 | + | |
| 2030 | + | |
| 2031 | + | |
| 2032 | + | |
| 2033 | + | |
| 2034 | + | |
| 2035 | + | |
2030 | 2036 | | |
2031 | 2037 | | |
2032 | 2038 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | 101 | | |
105 | 102 | | |
106 | 103 | | |
| |||
0 commit comments