Skip to content

Commit d93a11c

Browse files
committed
Revert "[llvm][cmake] Make llvm_install_symlink robust to absolute dirs."
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 58580e9.
1 parent cac164f commit d93a11c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

llvm/cmake/modules/LLVMInstallSymlink.cmake

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@ include(GNUInstallDirs)
66

77
function(install_symlink name target outdir)
88
set(DESTDIR $ENV{DESTDIR})
9-
GNUInstallDirs_get_absolute_install_dir(bindir "${outdir}" BINDIR)
10-
set(bindir "${DESTDIR}${bindir}")
9+
set(bindir "${DESTDIR}${CMAKE_INSTALL_PREFIX}/${outdir}")
1110

1211
message(STATUS "Creating ${name}")
1312

0 commit comments

Comments
 (0)