Revert "[llvm][cmake] Make `llvm_install_symlink` robust to absolute dirs."
authorJohn Ericson <John.Ericson@Obsidian.Systems>
Fri, 21 Jan 2022 02:48:10 +0000 (02:48 +0000)
committerJohn Ericson <John.Ericson@Obsidian.Systems>
Fri, 21 Jan 2022 02:48:10 +0000 (02:48 +0000)
https://lab.llvm.org/buildbot/#/builders/36/builds/16668 was the sort of
thing I saw before when this was part of D99484, and it makes some sense
now this would have something to do with it.

This reverts commit 58580e922a69d94859a2506c3053d8c066a1e38c.

llvm/cmake/modules/LLVMInstallSymlink.cmake

index ef7f5ab..b5c35f7 100644 (file)
@@ -6,8 +6,7 @@ include(GNUInstallDirs)
 
 function(install_symlink name target outdir)
   set(DESTDIR $ENV{DESTDIR})
-  GNUInstallDirs_get_absolute_install_dir(bindir "${outdir}" BINDIR)
-  set(bindir "${DESTDIR}${bindir}")
+  set(bindir "${DESTDIR}${CMAKE_INSTALL_PREFIX}/${outdir}")
 
   message(STATUS "Creating ${name}")