[PATCH] D41314: [cmake] Use symlinks for Windows-hosted toolchains built on Unix
Shoaib Meenai via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 8 23:51:44 PST 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rL322061: [cmake] Use symlinks for Windows-hosted toolchains built on Unix (authored by smeenai, committed by ).
Repository:
rL LLVM
https://reviews.llvm.org/D41314
Files:
llvm/trunk/cmake/modules/AddLLVM.cmake
llvm/trunk/cmake/modules/LLVMInstallSymlink.cmake
Index: llvm/trunk/cmake/modules/AddLLVM.cmake
===================================================================
--- llvm/trunk/cmake/modules/AddLLVM.cmake
+++ llvm/trunk/cmake/modules/AddLLVM.cmake
@@ -1473,7 +1473,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(UNIX)
+ if(CMAKE_HOST_UNIX)
set(dest_binary "$<TARGET_FILE_NAME:${target}>")
endif()
if(CMAKE_CONFIGURATION_TYPES)
@@ -1499,7 +1499,7 @@
endif()
endif()
- if(UNIX)
+ if(CMAKE_HOST_UNIX)
set(LLVM_LINK_OR_COPY create_symlink)
else()
set(LLVM_LINK_OR_COPY copy)
Index: llvm/trunk/cmake/modules/LLVMInstallSymlink.cmake
===================================================================
--- llvm/trunk/cmake/modules/LLVMInstallSymlink.cmake
+++ llvm/trunk/cmake/modules/LLVMInstallSymlink.cmake
@@ -3,7 +3,7 @@
# See PR8397.
function(install_symlink name target outdir)
- if(UNIX)
+ if(CMAKE_HOST_UNIX)
set(LINK_OR_COPY create_symlink)
set(DESTDIR $ENV{DESTDIR})
else()
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D41314.129037.patch
Type: text/x-patch
Size: 1095 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180109/a5a12789/attachment.bin>
More information about the llvm-commits
mailing list