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
2323 for p in aarch64-linux-musl aarch64-linux-gnu
2424 do
2525 cc="$p-gcc -no-pie"
26− qemu="qemu-aarch64 -L /usr/$p"
26+ qemu="qemu-aarch64"
2727 if
2828 $cc -v >/dev/null 2>&1 &&
29− $qemu -version >/dev/null 2>&1 &&
30− test -d /usr/$p
29+ $qemu -version >/dev/null 2>&1
3130 then
31+ if sysroot=$($cc -print-sysroot) && test -n "$sysroot"
32+ then
33+ qemu="$qemu -L $sysroot"
34+ fi
3235 break
3336 fi
3437 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