History

use toolchain to determine aarch64 sysroot path

Michael Forney committed 5 years ago

Commit 097dc861 parent 0678bee1 file · +6 −3Browse files

Unified · Split

tools/test.sh+6−3
@@ -23,12 +23,15 @@ init() { · 22 unmodified lines
23 for p in aarch64-linux-musl aarch64-linux-gnu23 for p in aarch64-linux-musl aarch64-linux-gnu
24 do24 do
25 cc="$p-gcc -no-pie"25 cc="$p-gcc -no-pie"
26 qemu="qemu-aarch64 -L /usr/$p"26 qemu="qemu-aarch64"
27 if27 if
28 $cc -v >/dev/null 2>&1 &&28 $cc -v >/dev/null 2>&1 &&
29 $qemu -version >/dev/null 2>&1 &&29 $qemu -version >/dev/null 2>&1
30 test -d /usr/$p
31 then30 then
31 if sysroot=$($cc -print-sysroot) && test -n "$sysroot"
32 then
33 qemu="$qemu -L $sysroot"
34 fi
32 break35 break
33 fi36 fi
34 cc=37 cc=

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t