commit 922328008e97952803e009e33fb772d26a94b77a parent 92b65781c6ac115d22b74ce84732fd11454a284d Author: Drew DeVault <sir@cmpwn.com> Date: Sat, 20 Mar 2021 11:25:04 -0400 make: pass -D to test build Diffstat:
M | Makefile | | | 5 | ++++- |
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/Makefile b/Makefile @@ -37,7 +37,10 @@ $(HARECACHE)/hare.ssa: $(hare_srcs) $(hare_stdlib_deps) $(TESTCACHE)/hare.ssa: $(hare_srcs) $(hare_testlib_deps) @printf 'HAREC\t$@\n' - @HARECACHE=$(TESTCACHE) $(HAREC) $(TESTHAREFLAGS) -o $@ $(hare_srcs) + @HARECACHE=$(TESTCACHE) $(HAREC) $(TESTHAREFLAGS) \ + -D VERSION:str='"'"$$(./version)"'"' \ + -D HAREPATH:str='"'"$(HAREPATH)"'"' \ + -o $@ $(hare_srcs) .bin/hare: $(HARECACHE)/hare.o @mkdir -p .bin