diff options
Diffstat (limited to 'build.c')
| -rw-r--r-- | build.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -69,16 +69,17 @@ int main(int argc, char** argv) { RUN_CMD({"rm", "/dev/mqueue/logs", NULL}); RUN_CMD({"mkdir", "-p", "output", NULL}); - RUN_CMD({"gcc", "src/log.c", "-o", LOG_O, NULL}); if (argc > 1) { if (strcmp(argv[1], "test") == 0) { return test_mode(); } if (strcmp(argv[1], "server") == 0) { + RUN_CMD({"gcc", "src/log.c", "-o", LOG_O, NULL}); return server_mode(); } if (strcmp(argv[1], "clean") == 0) { + RUN_CMD({"gcc", "src/log.c", "-o", LOG_O, NULL}); return clean_mode(); } } @@ -98,7 +99,7 @@ int test_mode() { printf("\n"); RUN_CMD({"gcc", "tests/main.c", LOGGER_C, "-o", "output/test.o", NULL}); - char* args[] = {LOG_O, "./output/test.o", NULL}; + char* args[] = {"./output/test.o", NULL}; print_cmd(args); execvp(args[0], args); return 0; |
