qbe

Internal scc patchset buffer for QBE
Log | Files | Refs | README | LICENSE

commit 097dc86c45cc2f20cf98ec0385dbb57aaba419ec
parent 0678bee5788acd08d62219f4fc857589e2703197
Author: Michael Forney <mforney@mforney.org>
Date:   Tue, 16 Mar 2021 18:21:08 -0700

use toolchain to determine aarch64 sysroot path

Diffstat:
Mtools/test.sh | 9++++++---
1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/tools/test.sh b/tools/test.sh @@ -23,12 +23,15 @@ init() { for p in aarch64-linux-musl aarch64-linux-gnu do cc="$p-gcc -no-pie" - qemu="qemu-aarch64 -L /usr/$p" + qemu="qemu-aarch64" if $cc -v >/dev/null 2>&1 && - $qemu -version >/dev/null 2>&1 && - test -d /usr/$p + $qemu -version >/dev/null 2>&1 then + if sysroot=$($cc -print-sysroot) && test -n "$sysroot" + then + qemu="$qemu -L $sysroot" + fi break fi cc=