Path: blob/main/conda-recipes/llvmdev/patches/no-windows-symlinks.patch
1154 views
commit ca5eab8b706d4307b954f39254efdfa6cad47cb51Author: Isuru Fernando <[email protected]>2Date: Tue Nov 8 13:34:20 2022 -060034Always copy on windows56The conda package build machine may have permissions to7create symlinks, but conda doesn't handle symlinks on windows8properly910diff --git a/llvm/cmake/modules/LLVMInstallSymlink.cmake b/llvm/cmake/modules/LLVMInstallSymlink.cmake11index e9be04aceb3d..1ff77f28385a 10064412--- a/llvm/cmake/modules/LLVMInstallSymlink.cmake13+++ b/llvm/cmake/modules/LLVMInstallSymlink.cmake14@@ -13,10 +13,11 @@ function(install_symlink name target outdir)1516message(STATUS "Creating ${name}")1718+ if(NOT CMAKE_HOST_WIN32)19execute_process(20COMMAND "${CMAKE_COMMAND}" -E create_symlink "${target}" "${name}"21WORKING_DIRECTORY "${outdir}" ERROR_VARIABLE has_err)22- if(CMAKE_HOST_WIN32 AND has_err)23+ else()24execute_process(25COMMAND "${CMAKE_COMMAND}" -E copy "${target}" "${name}"26WORKING_DIRECTORY "${outdir}")272829