Explorar o código

windows: init `cmakeTargets` in `init_vars`

jmorganca hai 1 ano
pai
achega
858a9bac59
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      llm/generate/gen_windows.ps1

+ 2 - 2
llm/generate/gen_windows.ps1

@@ -26,8 +26,6 @@ function amdGPUs {
     $GPU_LIST -join ';'
     $GPU_LIST -join ';'
 }
 }
 
 
-$script:cmakeTargets = @("ollama_llama_server")
-
 function init_vars {
 function init_vars {
     if (!$script:SRC_DIR) {
     if (!$script:SRC_DIR) {
         $script:SRC_DIR = $(resolve-path "..\..\")
         $script:SRC_DIR = $(resolve-path "..\..\")
@@ -35,6 +33,8 @@ function init_vars {
     if (!$script:llamacppDir) {
     if (!$script:llamacppDir) {
         $script:llamacppDir = "../llama.cpp"
         $script:llamacppDir = "../llama.cpp"
     }
     }
+
+    $script:cmakeTargets = @("ollama_llama_server")
     $script:cmakeDefs = @(
     $script:cmakeDefs = @(
         "-DBUILD_SHARED_LIBS=on",
         "-DBUILD_SHARED_LIBS=on",
         "-DLLAMA_NATIVE=off"
         "-DLLAMA_NATIVE=off"