File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ Param (
38
38
$version ,
39
39
40
40
[String ]
41
- $target = " default "
41
+ $target
42
42
)
43
43
44
44
$stopwatch = [System.Diagnostics.Stopwatch ]::startNew()
@@ -75,10 +75,16 @@ if (!$blasAccelerator) {
75
75
}
76
76
}
77
77
78
+ if ($target ) {
79
+ $buildTargetInformation = " ${target} "
80
+ } else {
81
+ $buildTargetInformation = " (using project defaults)"
82
+ }
83
+
78
84
Write-Host " Building the llama.cpp project..." - ForegroundColor " Yellow"
79
85
Write-Host " Version: ${version} " - ForegroundColor " DarkYellow"
80
86
Write-Host " BLAS accelerator: ${blasAccelerator} " - ForegroundColor " DarkYellow"
81
- Write-Host " Target : ${target } " - ForegroundColor " DarkYellow"
87
+ Write-Host " Build target : ${buildTargetInformation } " - ForegroundColor " DarkYellow"
82
88
83
89
$openBLASVersion = " 0.3.26"
84
90
@@ -179,7 +185,7 @@ cmake `
179
185
-- build . `
180
186
-- config Release `
181
187
-- parallel (Get-CimInstance Win32_ComputerSystem).NumberOfLogicalProcessors `
182
- -- target " ${target} "
188
+ $ ( if ( $target ) { " --target ${target} " })
183
189
184
190
Copy-Item - Path " ../../OpenBLAS/bin/libopenblas.dll" - Destination " ./bin/Release/libopenblas.dll"
185
191
You can’t perform that action at this time.
0 commit comments