Index: cmake/modules/LLVMInstallSymlink.cmake =================================================================== --- cmake/modules/LLVMInstallSymlink.cmake +++ cmake/modules/LLVMInstallSymlink.cmake @@ -3,9 +3,9 @@ # See PR8397. function(install_symlink name target outdir) + set(DESTDIR $ENV{DESTDIR}) if(UNIX) set(LINK_OR_COPY create_symlink) - set(DESTDIR $ENV{DESTDIR}) else() set(LINK_OR_COPY copy) endif()