Skip to content

Commit

Permalink
zig build system: delete ./build file on success
Browse files Browse the repository at this point in the history
see #204
  • Loading branch information
andrewrk committed Apr 4, 2017
1 parent 1c6000d commit e332cd6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,8 @@ int main(int argc, char **argv) {
fprintf(stderr, " %s", args.at(i));
}
fprintf(stderr, "\n");
} else {
os_delete_file(buf_create_from_str("./build"));
}
return (term.how == TerminationIdClean) ? term.code : -1;
}
Expand Down

0 comments on commit e332cd6

Please sign in to comment.