[PATCH] D29950: Provide DESTDIR on all platforms

Mateusz MikuĊ‚a via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 14 11:01:42 PST 2017


mati865 created this revision.
Herald added a subscriber: mgorny.

It's useful for creating LLVM packages on win32, project using it: http://www.msys2.org/


Repository:
  rL LLVM

https://reviews.llvm.org/D29950

Files:
  cmake/modules/LLVMInstallSymlink.cmake


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()


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D29950.88397.patch
Type: text/x-patch
Size: 438 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170214/324c7a1f/attachment.bin>


More information about the llvm-commits mailing list