shithub: mc

Download patch

ref: c9eeeaaa1c2fcef9e41cbb2c900e3c61fec5882c
parent: ece21cac74e30ff4c2f1265e11d642d136d8b287
author: Ori Bernstein <ori@eigenstate.org>
date: Sat Nov 18 07:59:26 EST 2017

Point mbld to the right libraries for running tests.

	Thanks to https://github.com/Earnestly

--- a/test/runtest.rc
+++ b/test/runtest.rc
@@ -5,7 +5,7 @@
 MYR_MUSE=../muse/6.out
 fn build {
 	rm -f $1 $1^.6 $1^.use
-	../obj/mbld/mbld -o '' -b $1 -I../lib/std -I../lib/sys -r../rt/_myrrt.6 $1^.myr
+	../obj/mbld/mbld -Bnone -o '' -b $1 -I../obj/lib/std -I../obj/lib/sys -I../obj/lib/regex -r../rt/_myrrt.6 $1^.myr
 }
 
 fn pass {
--- a/test/runtest.sh
+++ b/test/runtest.sh
@@ -9,8 +9,7 @@
 
 build() {
 	rm -f $1 $1.o $1.s $1.use
-	echo ../obj/mbld/mbld -o '' -b $1 -I../lib/std -I../lib/sys -r../rt/_myrrt.o $1.myr
-	../obj/mbld/mbld -o '' -b $1 -I../lib/std -I../lib/sys -r../rt/_myrrt.o $1.myr
+	../obj/mbld/mbld -Bnone -o '' -b $1 -I../obj/lib/std -I../obj/lib/sys -I../obj/lib/regex -r../rt/_myrrt.o $1.myr
 }
 
 pass() {