Closed oroppas closed 3 years ago
Looks like it can't locate clrjit.dll
, can you check that exists inside C:\Program Files\dotnet/shared/Microsoft.NETCore.App/5.0.1
Yeah, I've been scratching my head since clrjit.dll
exists under C:\Program Files\dotnet/shared/Microsoft.NETCore.App/5.0.1
dir "C:\Program Files\dotnet\shared\Microsoft.NETCore.App\5.0.1\clrjit.*"
Volume in drive C is System
Volume Serial Number is F63D-D612
Directory of C:\Program Files\dotnet\shared\Microsoft.NETCore.App\5.0.1
11/26/2020 02:18 AM 1,324,424 clrjit.dll
1 File(s) 1,324,424 bytes
0 Dir(s) 743,387,054,080 bytes free
pyjion/CMakeLists.txt
looks like
if (WIN32)
add_custom_command(
TARGET _pyjion POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy
${DOTNETPATH}/clrjit.dll
${CMAKE_CURRENT_BINARY_DIR}/clrjit.dll
)
endif(WIN32)
Shouldn't the last line of add_custom_command
be ${CMAKE_CURRENT_BINARY_DIR}
instead of
${CMAKE_CURRENT_BINARY_DIR}/clrjit.dll
?
This works on my Windows
diff --git a/CMakeLists.txt b/CMakeLists.txt
index e442b0f..6358af6 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -186,7 +186,7 @@ if (WIN32)
TARGET _pyjion POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy
${DOTNETPATH}/clrjit.dll
- ${CMAKE_CURRENT_BINARY_DIR}/clrjit.dll
+ ${CMAKE_CURRENT_BINARY_DIR}
)
endif(WIN32)
Basically, it fails to link
_pyjion.cp39-win_amd64.pyd
Here's system info
and here's the log