shithub: mc

Download patch

ref: 03ce0ae18518e2686e8b30e25cf47e2ad1afe6ad
parent: 20a144ead44df310a24b484a886789c380431943
author: Ori Bernstein <ori@eigenstate.org>
date: Sun Apr 12 21:33:17 EDT 2015

Add local deps to subprojects.

--- a/libbio/bldfile
+++ b/libbio/bldfile
@@ -2,4 +2,6 @@
 	bio.myr
 	geti.myr
 	puti.myr
+
+        lib ../libstd:std
 ;;
--- a/libregex/bldfile
+++ b/libregex/bldfile
@@ -3,6 +3,10 @@
 	interp.myr
 	ranges.myr
 	types.myr
+
+        lib ../libstd:std
 ;;
 
-gen ranges.myr = mkchartab -a -p_ranges UnicodeData.txt -o ranges.myr;;
+gen ranges.myr {durable} =
+	mkchartab -a -p_ranges UnicodeData.txt -o ranges.myr
+;;
--- a/mbld/bldfile
+++ b/mbld/bldfile
@@ -14,6 +14,14 @@
 	test.myr
         types.myr
 	util.myr
+
+	# Currently, mbld doesn't add all deps transitively.
+	# Until this gets fixed, we need to list all dependent
+	# libraries here explicitly.
+	lib ../libstd:sys
+	lib ../libstd:std
+	lib ../libbio:bio
+	lib ../libregex:regex
 ;;
 
 gen config.myr {durable} = ./configure ;;