Skip to content

Commit 3516de5

Browse files
authored
Merge pull request #54 from cgay/dev
deft build: fix -clean flag
2 parents dd9012b + f84c15b commit 3516de5

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

sources/commands/build.dylan

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,12 +62,16 @@ define method execute-subcommand
6262
" or configure a default library.");
6363
end);
6464
end;
65+
if (get-option-value(subcmd, "clean"))
66+
let _build = ws/build-directory(ws);
67+
verbose("Deleting directory %s due to -clean flag.", _build);
68+
fs/delete-directory(_build, recursive?: #t);
69+
end;
6570
for (name in library-names)
6671
// Let the shell locate dylan-compiler...
6772
let command
6873
= join(remove(list("dylan-compiler",
6974
"-compile",
70-
get-option-value(subcmd, "clean") & "-clean",
7175
get-option-value(subcmd, "link") & "-link",
7276
get-option-value(subcmd, "unify") & "-unify",
7377
get-option-value(subcmd, "verbose") & "-verbose",

0 commit comments

Comments
 (0)