summaryrefslogtreecommitdiff
path: root/mbld/test.myr
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2015-08-29 10:40:49 -0700
committerOri Bernstein <ori@eigenstate.org>2015-08-29 10:40:49 -0700
commit0daad047dcbfae0c6650dada4195efecbbe2b883 (patch)
treea8906d867f8bcb85019adb8dca56ad5bf3e0085c /mbld/test.myr
parentaee3a905c030959ffcf3b2cc9e2b1b9ba83e1f7d (diff)
downloadmc-0daad047dcbfae0c6650dada4195efecbbe2b883.tar.gz
Copy the search paths.
We modify them in build sometimes.
Diffstat (limited to 'mbld/test.myr')
-rw-r--r--mbld/test.myr8
1 files changed, 5 insertions, 3 deletions
diff --git a/mbld/test.myr b/mbld/test.myr
index 3095383..0481efc 100644
--- a/mbld/test.myr
+++ b/mbld/test.myr
@@ -21,10 +21,10 @@ const test = {b
ok = true
hastest = false
if std.fexists("test")
- hastest = true
for tn in b.all
match gettarg(b.targs, tn)
| `Bin bt:
+ hastest = true
if !dotest(b, bt)
ok = false
;;
@@ -85,13 +85,15 @@ const dotest = {b, targ
.dir = targ.dir,
.inputs = [path][:],
.install = false,
- .libdeps = targ.libdeps,
- .incpath = targ.incpath,
+ .libdeps = std.sldup(targ.libdeps),
+ .incpath = std.sldup(targ.incpath),
]
cleantest(b, path)
buildbin(b, &tt, true)
tests = std.slpush(tests, bin)
+ std.slfree(tt.libdeps)
+ std.slfree(tt.incpath)
;;
std.slfree(path)
;;