shithub: mc

Download patch

ref: 42a043c61a1190130757aa873108ebb2dc8ff386
parent: cf11434260731f71552d54c9e0190e37b6ec988a
author: Ori Bernstein <ori@eigenstate.org>
date: Sat Jan 3 21:14:25 EST 2015

Don't double include '.'

--- a/build.myr
+++ b/build.myr
@@ -92,8 +92,10 @@
 	if targ.built
 		->
 	;;
-	if targ.libdeps.len > 0 && !hasinc(targ.incpath, ".")
-		targ.incpath = std.slpush(targ.incpath, ".")
+	if targ.libdeps.len > 0
+		if !hasinc(targ.incpath, ".")
+			targ.incpath = std.slpush(targ.incpath, ".")
+		;;
 		for l in targ.libdeps
 			build(p, l)
 		;;