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
36bd9677
"...en/git@developer.sourcefind.cn:renzhc/diffusers_dcu.git" did not exist on "e5810e686ea4ac499e325c2961808c8972dee039"
Commit
36bd9677
authored
Apr 04, 2024
by
Daniel Hiltgen
Browse files
Fail fast if mingw missing on windows
parent
a2e60ebc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
llm/generate/gen_windows.ps1
llm/generate/gen_windows.ps1
+8
-0
No files found.
llm/generate/gen_windows.ps1
View file @
36bd9677
...
@@ -183,9 +183,17 @@ if ($null -eq ${env:OLLAMA_SKIP_CPU_GENERATE}) {
...
@@ -183,9 +183,17 @@ if ($null -eq ${env:OLLAMA_SKIP_CPU_GENERATE}) {
# GCC build for direct linking into the Go binary
# GCC build for direct linking into the Go binary
init_vars
init_vars
# cmake will silently fallback to msvc compilers if mingw isn't in the path, so detect and fail fast
# as we need this to be compiled by gcc for golang to be able to link with itx
write-host "
Checking
for
MinGW...
"
# error action ensures we exit on failure
get-command gcc
get-command mingw32-make
$
script
:
cmakeTargets
= @("
llama
", "
ggml
")
$
script
:
cmakeTargets
= @("
llama
", "
ggml
")
$
script
:
cmakeDefs
= @(
$
script
:
cmakeDefs
= @(
"
-G
", "
MinGW
Makefiles
"
"
-G
", "
MinGW
Makefiles
"
"
-DCMAKE_C_COMPILER
=
gcc.exe
",
"
-DCMAKE_CXX_COMPILER
=
g
++.
exe
",
"
-DBUILD_SHARED_LIBS
=
off
",
"
-DBUILD_SHARED_LIBS
=
off
",
"
-DLLAMA_NATIVE
=
off
",
"
-DLLAMA_NATIVE
=
off
",
"
-DLLAMA_AVX
=
off
",
"
-DLLAMA_AVX
=
off
",
...
...
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