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 (
3838 $version ,
3939
4040 [String ]
41- $target = " default "
41+ $target
4242)
4343
4444$stopwatch = [System.Diagnostics.Stopwatch ]::startNew()
@@ -75,10 +75,16 @@ if (!$blasAccelerator) {
7575 }
7676}
7777
78+ if ($target ) {
79+ $buildTargetInformation = " ${target} "
80+ } else {
81+ $buildTargetInformation = " (using project defaults)"
82+ }
83+
7884Write-Host " Building the llama.cpp project..." - ForegroundColor " Yellow"
7985Write-Host " Version: ${version} " - ForegroundColor " DarkYellow"
8086Write-Host " BLAS accelerator: ${blasAccelerator} " - ForegroundColor " DarkYellow"
81- Write-Host " Target : ${target } " - ForegroundColor " DarkYellow"
87+ Write-Host " Build target : ${buildTargetInformation } " - ForegroundColor " DarkYellow"
8288
8389$openBLASVersion = " 0.3.26"
8490
@@ -179,7 +185,7 @@ cmake `
179185 -- build . `
180186 -- config Release `
181187 -- parallel (Get-CimInstance Win32_ComputerSystem).NumberOfLogicalProcessors `
182- -- target " ${target} "
188+ $ ( if ( $target ) { " --target ${target} " })
183189
184190Copy-Item - Path " ../../OpenBLAS/bin/libopenblas.dll" - Destination " ./bin/Release/libopenblas.dll"
185191
You can’t perform that action at this time.
0 commit comments