zig

fork of https://codeberg.org/ziglang/zig
Log | Tree | Refs | README | LICENSE

commit e332cd65c95472c0e06bfc6a2cccf17c36ee4606 (tree)
parent 1c6000d0474a89bbc48897fc2f2f2d7331e2fe4e
Author: Andrew Kelley <superjoe30@gmail.com>
Date:   Tue,  4 Apr 2017 02:02:51 -0400

zig build system: delete ./build file on success

see #204

Diffstat:
Msrc/main.cpp | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/main.cpp b/src/main.cpp @@ -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; }