Skip to content

Commit 3f57cf2

Browse files
committed
Fix GCC version detection
1 parent 58694a5 commit 3f57cf2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

build.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -282,10 +282,10 @@ exec { tar -a -cf "bin\$filename" -C "build\openocd-install\$msysEnv\bin" '*' -C
282282

283283
# Package Risc-V separately as well
284284

285-
$version = (. ".\build\riscv-install\$msysEnv\bin\riscv32-unknown-elf-gcc.exe" -dumpversion) -split '\.'
285+
$version = ((. ".\build\riscv-install\$msysEnv\bin\riscv32-unknown-elf-gcc.exe" -dumpversion) -split '\.')[0]
286286

287287
$filename = 'riscv-toolchain-{0}-{1}.zip' -f
288-
$version[0],
288+
$version,
289289
$suffix
290290

291291
Write-Host "Saving Risc-V toolchain package to $filename"

0 commit comments

Comments
 (0)