summaryrefslogtreecommitdiff
path: root/mbld/main.myr
diff options
context:
space:
mode:
Diffstat (limited to 'mbld/main.myr')
-rw-r--r--mbld/main.myr4
1 files changed, 3 insertions, 1 deletions
diff --git a/mbld/main.myr b/mbld/main.myr
index d54eb4f..4d74f99 100644
--- a/mbld/main.myr
+++ b/mbld/main.myr
@@ -37,6 +37,7 @@ const main = {args : byte[:][:]
[.opt='b', .arg="bin", .desc="compile binary 'bin' from inputs"],
[.opt='r', .arg="rt", .desc="link against runtime 'rt'"],
[.opt='o', .arg="dir", .desc="output directory"],
+ [.opt='v', .desc="increase build verbosity"],
][:]
])
@@ -58,6 +59,7 @@ const main = {args : byte[:][:]
| ('o', arg): bld.opt_objdir = arg
| ('b', arg): targname = arg
| ('r', arg): bld.opt_runtime = arg
+ | ('v', _): bld.opt_verbosity++
| _: std.die("unreachable\n")
;;
;;
@@ -72,7 +74,7 @@ const main = {args : byte[:][:]
if targname.len != 0
ok = buildimm(b, targname, cmd.args)
elif runsrc.len != 0
- bld.opt_silent = true
+ bld.opt_verbosity = -1
tmp = std.mktemppath("runmyr")
ok = buildimm(b, tmp, [runsrc][:])
if ok