[all-commits] [llvm/llvm-project] 58580e: [llvm][cmake] Make `llvm_install_symlink` robust t...

John Ericson via All-commits all-commits at lists.llvm.org
Thu Jan 20 18:11:04 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 58580e922a69d94859a2506c3053d8c066a1e38c
      https://github.com/llvm/llvm-project/commit/58580e922a69d94859a2506c3053d8c066a1e38c
  Author: John Ericson <John.Ericson at Obsidian.Systems>
  Date:   2022-01-21 (Fri, 21 Jan 2022)

  Changed paths:
    M llvm/cmake/modules/LLVMInstallSymlink.cmake

  Log Message:
  -----------
  [llvm][cmake] Make `llvm_install_symlink` robust to absolute dirs.

If `CMAKE_INSTALL_BINDIR` is a different absolute path per project, as
it is with NixOS when we install every package to its own prefix, the
old way fails when the absolute path gets prepended.

There are still some issues with dowstream packages using `LLVM_TOOLS_INSTALL_DIR` which also may be absolute and just for LLVM proper, but that will be addressed in a future commit.

Differential Revision: https://reviews.llvm.org/D101070




More information about the All-commits mailing list