[PATCH] D62891: CMake: Use symlinks also on MSYS
Orgad Shaneh via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 4 23:19:57 PDT 2019
orgads updated this revision to Diff 203085.
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D62891/new/
https://reviews.llvm.org/D62891
Files:
cmake/modules/AddLLVM.cmake
cmake/modules/LLVMInstallSymlink.cmake
Index: cmake/modules/LLVMInstallSymlink.cmake
===================================================================
--- cmake/modules/LLVMInstallSymlink.cmake
+++ cmake/modules/LLVMInstallSymlink.cmake
@@ -3,7 +3,7 @@
# See PR8397.
function(install_symlink name target outdir)
- if(CMAKE_HOST_UNIX)
+ if(CMAKE_HOST_UNIX OR MSYS)
set(LINK_OR_COPY create_symlink)
set(DESTDIR $ENV{DESTDIR})
else()
Index: cmake/modules/AddLLVM.cmake
===================================================================
--- cmake/modules/AddLLVM.cmake
+++ cmake/modules/AddLLVM.cmake
@@ -1505,7 +1505,7 @@
if(NOT ARG_OUTPUT_DIR)
# If you're not overriding the OUTPUT_DIR, we can make the link relative in
# the same directory.
- if(CMAKE_HOST_UNIX)
+ if(CMAKE_HOST_UNIX OR MSYS)
set(dest_binary "$<TARGET_FILE_NAME:${target}>")
endif()
if(CMAKE_CONFIGURATION_TYPES)
@@ -1531,7 +1531,7 @@
endif()
endif()
- if(CMAKE_HOST_UNIX)
+ if(CMAKE_HOST_UNIX OR MSYS)
set(LLVM_LINK_OR_COPY create_symlink)
else()
set(LLVM_LINK_OR_COPY copy)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D62891.203085.patch
Type: text/x-patch
Size: 1086 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190605/3b6872d3/attachment.bin>
More information about the llvm-commits
mailing list