summaryrefslogtreecommitdiff
path: root/mbld/clean.myr
diff options
context:
space:
mode:
Diffstat (limited to 'mbld/clean.myr')
-rw-r--r--mbld/clean.myr3
1 files changed, 2 insertions, 1 deletions
diff --git a/mbld/clean.myr b/mbld/clean.myr
index 89e595b..5452ae5 100644
--- a/mbld/clean.myr
+++ b/mbld/clean.myr
@@ -70,7 +70,7 @@ const cleanup = {b, targ, leaves, islib
we want to automatically add 'clean' sources since otherwise,
mbld won't be able to clean code after changing a build file.
*/
- setdir(b, targ.dir)
+ pushdir(b, targ.dir)
if !myrdeps(b, targ, islib, true, true, &dg)
std.fatal(1, "Could not load dependencies for %s\n", targ.name)
;;
@@ -85,5 +85,6 @@ const cleanup = {b, targ, leaves, islib
std.put("\tclean %s\n", k)
;;
;;
+ popdir(b)
}