shithub: mc

Download patch

ref: 330b77e1df403fdfcbc6b49534571a76b1b525b5
parent: 1100eb4309cef7fbc7f488a7d066d1f16d80409f
author: Ori Bernstein <ori@eigenstate.org>
date: Thu Sep 25 15:24:40 EDT 2014

Init and use the runtime option correctly.

--- a/build.myr
+++ b/build.myr
@@ -155,7 +155,7 @@
 	if rt.len != 0
 		cmd = std.slpush(cmd, std.sldup(rt))
 	else
-		cmd = std.slpush(cmd, std.fmt("%s/%s", opt_instroot, "/lib/myr/_myrrt.o"))
+		cmd = std.slpush(cmd, std.sldup(opt_runtime))
 	;;
 
 	/* input.o list.o... */
--- a/opts.myr
+++ b/opts.myr
@@ -68,7 +68,7 @@
 	opt_ld = std.getenvv("MYR_LD", "ld")
 	opt_ar = std.getenvv("MYR_AR", "ar")
 	opt_muse = std.getenvv("MYR_MUSE", "muse")
-	opt_runtime = std.fmt(config.Instroot, "/lib/myr/_myrrt.o")
+	opt_runtime = std.pathcat(config.Instroot, "/lib/myr/_myrrt.o")
 }
 
 const cstr2myr = {cstr