diff options
author | Mitya Selivanov <automainint@guattari.tech> | 2024-06-06 13:08:17 +0200 |
---|---|---|
committer | Mitya Selivanov <automainint@guattari.tech> | 2024-06-06 13:08:17 +0200 |
commit | 11b2dbd9bc8f094213a29ada2cfdf03e1adf936c (patch) | |
tree | e31abd7510ffbcb990a25efb1720b8e33a5bb6aa | |
parent | ad3efc4656ffd1031668475d0a3f673a36b8723a (diff) | |
download | kit-11b2dbd9bc8f094213a29ada2cfdf03e1adf936c.zip |
[build] debug
-rwxr-xr-x | build.c | 29 |
1 files changed, 12 insertions, 17 deletions
@@ -550,24 +550,19 @@ i32 main(i32 argc, c8 **argv) { } fflush(stdout); - // FIXME - // Fix interprocess for Windows. - - if (OS != WINDOWS) { - system(fmt("\"." DELIM "%s" DELIM "test_interprocess\" clean", destination)); - if (OS == WINDOWS) - system(fmt("start \"\" /b %s/test_interprocess\" reader", destination)); - else - system(fmt("\"." DELIM "%s" DELIM "test_interprocess\" reader &", destination)); - code = system(fmt("\"." DELIM "%s" DELIM "test_interprocess\" writer", destination)); - if (code == 0) - printf("interprocess - OK\n"); - else { - printf("interprocess - FAILED (code %d)\n", code); - status = 1; - } - fflush(stdout); + system(fmt("\"." DELIM "%s" DELIM "test_interprocess\" clean", destination)); + if (OS == WINDOWS) + system(fmt("cmd /c start \"\" /b %s/test_interprocess\" reader", destination)); + else + system(fmt("\"." DELIM "%s" DELIM "test_interprocess\" reader &", destination)); + code = system(fmt("\"." DELIM "%s" DELIM "test_interprocess\" writer", destination)); + if (code == 0) + printf("interprocess - OK\n"); + else { + printf("interprocess - FAILED (code %d)\n", code); + status = 1; } + fflush(stdout); printf("\nAll done.\n"); return status; |