summaryrefslogtreecommitdiff
path: root/build.c
diff options
context:
space:
mode:
Diffstat (limited to 'build.c')
-rwxr-xr-xbuild.c29
1 files changed, 12 insertions, 17 deletions
diff --git a/build.c b/build.c
index 9453b6f..8b3b51a 100755
--- a/build.c
+++ b/build.c
@@ -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;