summaryrefslogtreecommitdiff
path: root/mbld
diff options
context:
space:
mode:
Diffstat (limited to 'mbld')
-rw-r--r--mbld/main.myr6
1 files changed, 6 insertions, 0 deletions
diff --git a/mbld/main.myr b/mbld/main.myr
index 5212865..62537f8 100644
--- a/mbld/main.myr
+++ b/mbld/main.myr
@@ -67,9 +67,15 @@ const main = {args : byte[:][:]
b = mkbuild(tags)
if targname.len != 0
+ if cmd.args.len == 0
+ std.fatal("nothing to compile\n")
+ ;;
bld.opt_objdir = objdir
ok = buildimm(b, targname, cmd.args)
elif runsrc.len != 0
+ if cmd.args.len == 0
+ std.fatal("nothing to run\n")
+ ;;
bld.opt_objdir = objdir
bld.opt_verbosity = -1
tmp = std.mktemppath("runmyr")