Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
ollama
Commits
79292ff3
Unverified
Commit
79292ff3
authored
Jul 10, 2024
by
Daniel Hiltgen
Committed by
GitHub
Jul 10, 2024
Browse files
Merge pull request #5555 from dhiltgen/msvc_deps
Bundle missing CRT libraries
parents
8ea50044
b44320db
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
scripts/build_windows.ps1
scripts/build_windows.ps1
+4
-1
No files found.
scripts/build_windows.ps1
View file @
79292ff3
...
@@ -107,9 +107,12 @@ function gatherDependencies() {
...
@@ -107,9 +107,12 @@ function gatherDependencies() {
# TODO - this varies based on host build system and MSVC version - drive from dumpbin output
# TODO - this varies based on host build system and MSVC version - drive from dumpbin output
# currently works for Win11 + MSVC 2019 + Cuda V11
# currently works for Win11 + MSVC 2019 + Cuda V11
cp
"
${env:VCToolsRedistDir}
\x64\Microsoft.VC*.CRT\msvcp140.dll"
"
${script:DEPS_DIR}
\ollama_runners\"
cp
"
${env:VCToolsRedistDir}
\x64\Microsoft.VC*.CRT\msvcp140
*
.dll"
"
${script:DEPS_DIR}
\ollama_runners\"
cp
"
${env:VCToolsRedistDir}
\x64\Microsoft.VC*.CRT\vcruntime140.dll"
"
${script:DEPS_DIR}
\ollama_runners\"
cp
"
${env:VCToolsRedistDir}
\x64\Microsoft.VC*.CRT\vcruntime140.dll"
"
${script:DEPS_DIR}
\ollama_runners\"
cp
"
${env:VCToolsRedistDir}
\x64\Microsoft.VC*.CRT\vcruntime140_1.dll"
"
${script:DEPS_DIR}
\ollama_runners\"
cp
"
${env:VCToolsRedistDir}
\x64\Microsoft.VC*.CRT\vcruntime140_1.dll"
"
${script:DEPS_DIR}
\ollama_runners\"
foreach
(
$part
in
$
(
"runtime"
,
"stdio"
,
"filesystem"
,
"math"
,
"convert"
,
"heap"
,
"string"
,
"time"
,
"locale"
,
"environment"
))
{
cp
"
$
env
:
VCToolsRedistDir
\..\..\..\Tools\Llvm\x64\bin\api-ms-win-crt-
${part}
*.dll"
"
${script:DEPS_DIR}
\ollama_runners\"
}
cp
"
${script:SRC_DIR}
\app\ollama_welcome.ps1"
"
${script:SRC_DIR}
\dist\"
cp
"
${script:SRC_DIR}
\app\ollama_welcome.ps1"
"
${script:SRC_DIR}
\dist\"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment