Skip to content

Commit 12fb268

Browse files
committed
fixed the assemble.ps1 PowerShell™ script
1 parent b67cb52 commit 12fb268

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

riscv-rt/assemble.ps1

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,13 @@ Remove-Item -Force bin/*.a
33

44
$crate = "riscv-rt"
55
$extension_sets = @("i", "im", "ic", "imc")
6+
$pwd = Get-Location
67

78
foreach ($ext in $extension_sets) {
8-
riscv64-unknown-elf-gcc -ggdb3 -c -mabi=ilp32 -march=rv32$ext asm.S -o bin/$crate.o
9+
riscv64-unknown-elf-gcc -ggdb3 -fdebug-prefix-map=$pwd=/riscv-rt -c -mabi=ilp32 -march=rv32$ext asm.S -o bin/$crate.o
910
riscv64-unknown-elf-ar crs bin/riscv32$ext-unknown-none-elf.a bin/$crate.o
1011

11-
riscv64-unknown-elf-gcc -ggdb3 -c -mabi=lp64 -march=rv64$ext asm.S -o bin/$crate.o
12+
riscv64-unknown-elf-gcc -ggdb3 -fdebug-prefix-map=$pwd=/riscv-rt -c -mabi=lp64 -march=rv64$ext asm.S -o bin/$crate.o
1213
riscv64-unknown-elf-ar crs bin/riscv64$ext-unknown-none-elf.a bin/$crate.o
1314
}
1415

0 commit comments

Comments
 (0)