summaryrefslogtreecommitdiff
path: root/mbld
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2017-07-15 22:12:50 -0700
committerOri Bernstein <ori@eigenstate.org>2017-07-15 22:12:50 -0700
commitabad00c11d5e0407b20281cbdae9386c275f4bf5 (patch)
treed2b7270def8b664df53d64016b895236853d0785 /mbld
parent353cdc329987436b4a76a46a8de4e528dbf94d6b (diff)
downloadmc-abad00c11d5e0407b20281cbdae9386c275f4bf5.tar.gz
Remove obsolete options.
Diffstat (limited to 'mbld')
-rw-r--r--mbld/main.myr26
1 files changed, 3 insertions, 23 deletions
diff --git a/mbld/main.myr b/mbld/main.myr
index 0523faf..10d3946 100644
--- a/mbld/main.myr
+++ b/mbld/main.myr
@@ -15,8 +15,6 @@ use "syssel"
const main = {args : byte[:][:]
var b : bld.build#
- var cleanfirst
- var dumponly
var bintarg
var targname
var runsrc
@@ -28,8 +26,6 @@ const main = {args : byte[:][:]
cmd = std.optparse(args, &[
.argdesc = "[inputs...]",
.opts = [
- [.opt='c', .desc="clean before building"],
- [.opt='T', .desc="list all available targets"],
[.opt='t', .arg="tag", .desc="build with specified systag"],
[.opt='S', .desc="generate assembly when building"],
[.opt='d', .desc="dump debugging information for mbld"],
@@ -47,16 +43,12 @@ const main = {args : byte[:][:]
tags = [][:]
runsrc = ""
targname = ""
- dumponly = false
- cleanfirst = false
ok = true
bld.initopts()
for opt in cmd.opts
match opt
- | ('T', ""): dumponly = true
| ('S', ""): bld.opt_genasm = true
- | ('c', ""): cleanfirst = true
| ('I', arg): std.slpush(&bld.opt_incpaths, arg)
| ('B', arg): bld.opt_instbase = arg
| ('t', tag): std.slpush(&tags, tag)
@@ -91,29 +83,20 @@ const main = {args : byte[:][:]
b = mkbuild(tags)
if targname.len != 0
- buildimm(b, targname, cmd.args, bintarg, cleanfirst)
+ buildimm(b, targname, cmd.args, bintarg)
elif runsrc.len != 0
bld.opt_silent = true
tmp = std.mktemppath("runmyr")
- ok = buildimm(b, tmp, [runsrc][:], true, cleanfirst)
+ ok = buildimm(b, tmp, [runsrc][:], true)
if ok
ok = runcmd(tmp, cmd.args)
;;
std.remove(tmp)
- elif dumponly
- findproj(b, "bld.proj")
- bld.load(b)
- for t in b.all
- bld.mbldput("{}\n", t)
- ;;
else
findproj(b, "bld.proj")
bld.load(b)
/*bld.configure()*/
/* default: buildall */
- if cleanfirst
- bld.cleanall(b)
- ;;
if cmd.args.len == 0
bld.buildall(b)
else
@@ -136,7 +119,7 @@ const main = {args : byte[:][:]
;;
}
-const buildimm = {b, targ, inputs, bintarg, cleanfirst -> bool
+const buildimm = {b, targ, inputs, bintarg -> bool
var mt : bld.myrtarg
mt = [
@@ -146,9 +129,6 @@ const buildimm = {b, targ, inputs, bintarg, cleanfirst -> bool
.incpath=bld.opt_incpaths,
.libdeps=[][:]
]
- if cleanfirst
- bld.cleanmyr(b, &mt)
- ;;
if bintarg
-> bld.buildbin(b, &mt, true)
else