Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to LLVM 18.1.0 rc 4 #121395

Merged
merged 2 commits into from
Mar 2, 2024
Merged

Update to LLVM 18.1.0 rc 4 #121395

merged 2 commits into from
Mar 2, 2024

Commits on Mar 1, 2024

  1. Update to LLVM 18.1.0 rc 4

    nikic committed Mar 1, 2024
    Configuration menu
    Copy the full SHA
    4b55e17 View commit details
    Browse the repository at this point in the history
  2. Handle new LLVM soname

    LLVM now includes the minor version in the soname, and also changed
    the names of shared object files. libLLVM-18.so is now a symlink to
    libLLVM.so.18.1. We need to make some 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 install
    the target of the symlink, ans this is what will get loaded at
    runtime.
    
    However, the rust-dev component in particular also needs to
    distribute the symlink itself, as download-ci-llvm will end up
    invoking llvm-config, which requires the symlink to exist. The
    symlink is not shipped in other components.
    nikic committed Mar 1, 2024
    Configuration menu
    Copy the full SHA
    1a652fa View commit details
    Browse the repository at this point in the history