summaryrefslogtreecommitdiff
path: root/mbld
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2018-04-08 01:17:34 -0700
committerOri Bernstein <ori@eigenstate.org>2018-04-08 01:17:34 -0700
commitc80d62a29435e75e476a93f0d7da3deb20e1204a (patch)
tree821f070f49620700c376360351708eaebadfd366 /mbld
parentf9f93d1e447873ca3e5fa6c542eb34e8dd8d4b71 (diff)
downloadmc-c80d62a29435e75e476a93f0d7da3deb20e1204a.tar.gz
Add support for `-T` option to compile in test mode.
Tests can now access hidden declarations.
Diffstat (limited to 'mbld')
-rw-r--r--mbld/deps.myr1
1 files changed, 1 insertions, 0 deletions
diff --git a/mbld/deps.myr b/mbld/deps.myr
index 71dae29..53b5a8f 100644
--- a/mbld/deps.myr
+++ b/mbld/deps.myr
@@ -483,6 +483,7 @@ const myrcmd = {b, n, mt, src, istest
pushopt(&n.cmd, "-I", inc)
;;
if istest
+ std.slpush(&n.cmd, "-T")
for (dir, _, _) : mt.tstdeps
pushopt(&n.cmd, "-I", std.pathcat(opt_objdir, dir))
;;