Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
numba
GitHub Repository: numba/llvmlite
Path: blob/main/conda-recipes/llvmdev/patches/no-windows-symlinks.patch
1154 views
1
commit ca5eab8b706d4307b954f39254efdfa6cad47cb5
2
Author: Isuru Fernando <[email protected]>
3
Date: Tue Nov 8 13:34:20 2022 -0600
4
5
Always copy on windows
6
7
The conda package build machine may have permissions to
8
create symlinks, but conda doesn't handle symlinks on windows
9
properly
10
11
diff --git a/llvm/cmake/modules/LLVMInstallSymlink.cmake b/llvm/cmake/modules/LLVMInstallSymlink.cmake
12
index e9be04aceb3d..1ff77f28385a 100644
13
--- a/llvm/cmake/modules/LLVMInstallSymlink.cmake
14
+++ b/llvm/cmake/modules/LLVMInstallSymlink.cmake
15
@@ -13,10 +13,11 @@ function(install_symlink name target outdir)
16
17
message(STATUS "Creating ${name}")
18
19
+ if(NOT CMAKE_HOST_WIN32)
20
execute_process(
21
COMMAND "${CMAKE_COMMAND}" -E create_symlink "${target}" "${name}"
22
WORKING_DIRECTORY "${outdir}" ERROR_VARIABLE has_err)
23
- if(CMAKE_HOST_WIN32 AND has_err)
24
+ else()
25
execute_process(
26
COMMAND "${CMAKE_COMMAND}" -E copy "${target}" "${name}"
27
WORKING_DIRECTORY "${outdir}")
28
29