harec

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit cf3ed178cc619acb15655126248db38ea83ed7e3
parent 5a1560feb0f702aeaa2ad65e9c2eca15fb4929b0
Author: Drew DeVault <sir@cmpwn.com>
Date:   Sat,  2 Jan 2021 16:03:23 -0500

Use QBE, AS, LD from environment

Diffstat:
Mconfig.sh | 4++++
Mtests/configure | 6+++---
2 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/config.sh b/config.sh @@ -5,6 +5,7 @@ AS=${AS:-as} CC=${CC:-cc} CFLAGS=${CFLAGS:-} LD=${LD:-ld} +QBE=${QBE:-qbe} SCDOC=${SCDOC:-scdoc} for arg @@ -143,6 +144,9 @@ run_configure() { printf "Creating $outdir/config.mk... " cat <<-EOF > "$outdir"/config.mk CC=$CC + AS=$AS + LD=$LD + QBE=$QBE SCDOC=$SCDOC LIBS=$LIBS PREFIX=${PREFIX:-/usr/local} diff --git a/tests/configure b/tests/configure @@ -13,9 +13,9 @@ tests() { tests/$t: libhart.a tests/$t.ha @printf 'HAREC %s\t$@\n' "tests/$t" @./harec -o tests/$t.ssa tests/$t.ha - @qbe -o tests/$t.s tests/$t.ssa - @as -o tests/$t.o tests/$t.s - @ld -o tests/$t $rtstart tests/$t.o libhart.a + @\$(QBE) -o tests/$t.s tests/$t.ssa + @\$(AS) -o tests/$t.o tests/$t.s + @\$(LD) -o tests/$t $rtstart tests/$t.o libhart.a @rm tests/$t.s tests/$t.ssa tests/$t.o check: tests/$t